A library that computes the ephemerides.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

77 linhas
1.8 KiB

  1. name: Unit tests
  2. on:
  3. push:
  4. branches: [main, features]
  5. pull_request:
  6. branches: [main, features]
  7. jobs:
  8. legacy-unit-tests:
  9. runs-on: ${{ matrix.os }}
  10. strategy:
  11. fail-fast: false
  12. matrix:
  13. os:
  14. - ubuntu-18.04
  15. - ubuntu-20.04
  16. - macos-10.15
  17. - macos-11.0
  18. python-version:
  19. - '3.7'
  20. - '3.8'
  21. - '3.9'
  22. name: Legacy unit tests (Python ${{ matrix.python-version }} on ${{ matrix.os }})
  23. steps:
  24. - uses: actions/checkout@v1
  25. - name: Set up Python
  26. uses: actions/setup-python@v1
  27. with:
  28. python-version: ${{ matrix.python-version }}
  29. - name: Install dependencies
  30. run: |
  31. pip install --upgrade pip pipenv
  32. pipenv sync -d
  33. - name: Unit tests
  34. env:
  35. COVERALLS_PRO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
  36. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  37. run: |
  38. make test
  39. pipenv run coveralls --service=github
  40. unit-tests:
  41. runs-on: ${{ matrix.os }}
  42. strategy:
  43. fail-fast: false
  44. matrix:
  45. os:
  46. - ubuntu-18.04
  47. - ubuntu-20.04
  48. - macos-10.15
  49. - macos-11.0
  50. python-version:
  51. - '3.7'
  52. - '3.8'
  53. - '3.9'
  54. name: Unit tests (Python ${{ matrix.python-version }} on ${{ matrix.os }})
  55. steps:
  56. - uses: actions/checkout@v1
  57. - name: Set up Python
  58. uses: actions/setup-python@v1
  59. with:
  60. python-version: ${{ matrix.python-version }}
  61. - name: Install dependencies
  62. run: |
  63. pip install --upgrade pip pipenv
  64. pipenv sync -d
  65. - name: Unit tests
  66. env:
  67. COVERALLS_PRO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
  68. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  69. run: |
  70. make test
  71. pipenv run coveralls --service=github