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.
 
 

73 lines
1.9 KiB

  1. name: Tests
  2. on:
  3. push:
  4. branches: [main, features]
  5. pull_request:
  6. branches: [main, features]
  7. jobs:
  8. doc-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. - windows-2019
  19. python_version:
  20. - '3.7'
  21. - '3.8'
  22. - '3.9'
  23. name: Doc tests (Python ${{ matrix.python_version }} on ${{ matrix.os }})
  24. steps:
  25. - uses: actions/checkout@v1
  26. - name: Set up Python
  27. uses: actions/setup-python@v1
  28. with:
  29. python-version: ${{ matrix.python_version }}
  30. - name: Prepare environment (non-Windows systems)
  31. if: ${{ matrix.os != 'windows-2019' }}
  32. run: |
  33. pip install --upgrade pip pipenv
  34. - name: Prepare environment (Windows)
  35. if: ${{ matrix.os == 'windows-2019' }}
  36. run: |
  37. python -mpip install --upgrade pip pipenv
  38. - name: Install dependencies (all systems)
  39. run: |
  40. pipenv lock --pre
  41. pipenv sync --dev
  42. pipenv install --dev
  43. - name: Install dependencies (Windows)
  44. if: ${{ matrix.os == 'windows-2019' }}
  45. run: |
  46. pipenv lock -r > requirements.txt
  47. python -mpip install -r requirements.txt
  48. - name: Run doc tests (with coverage)
  49. if: ${{ matrix.os == 'ubuntu-20.04' && matrix.python_version == '3.9' }}
  50. run: |
  51. make coverage-doctests
  52. - name: Run doc tests (without coverage)
  53. if: ${{ matrix.os != 'ubuntu-20.04' || matrix.python_version != '3.9' }}
  54. run: |
  55. make doctests
  56. - name: Push code coverage
  57. env:
  58. COVERALLS_PRO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
  59. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  60. if: ${{ matrix.os == 'ubuntu-20.04' && matrix.python_version == '3.9' }}
  61. run: |
  62. pipenv run coveralls --service=github