A library that computes the ephemerides.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

78 rindas
2.0 KiB

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