A library that computes the ephemerides.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

75 lines
1.7 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 lock --pre
  33. pipenv sync --dev
  34. - name: Unit tests
  35. run: |
  36. make legacy-tests
  37. unit-tests:
  38. runs-on: ${{ matrix.os }}
  39. strategy:
  40. fail-fast: false
  41. matrix:
  42. os:
  43. - ubuntu-18.04
  44. - ubuntu-20.04
  45. - macos-10.15
  46. - macos-11.0
  47. python-version:
  48. - '3.7'
  49. - '3.8'
  50. - '3.9'
  51. name: Unit tests (Python ${{ matrix.python-version }} on ${{ matrix.os }})
  52. steps:
  53. - uses: actions/checkout@v1
  54. - name: Set up Python
  55. uses: actions/setup-python@v1
  56. with:
  57. python-version: ${{ matrix.python-version }}
  58. - name: Install dependencies
  59. run: |
  60. pip install --upgrade pip pipenv
  61. pipenv lock --pre
  62. pipenv sync --dev
  63. - name: Unit tests
  64. env:
  65. COVERALLS_PRO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
  66. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  67. run: |
  68. make doctests
  69. pipenv run coveralls --service=github