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.
 
 

62 linhas
1.5 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-latest
  16. - macos-11.0
  17. - windows-latest
  18. python_version:
  19. - '3.7'
  20. - '3.8'
  21. - '3.9'
  22. - '3.10'
  23. name: Doc tests (Python ${{ matrix.python_version }} on ${{ matrix.os }})
  24. steps:
  25. - uses: actions/checkout@v2
  26. - name: Set up Python ${{ matrix.python_version }}
  27. uses: actions/setup-python@v2
  28. with:
  29. python-version: ${{ matrix.python_version }}
  30. architecture: x64
  31. - name: Prepare environment
  32. run: |
  33. python3 -m pip install --upgrade pip poetry
  34. - name: Install dependencies
  35. env:
  36. PIP_PREFER_BINARY: 1
  37. run: |
  38. python3 -m poetry install
  39. - name: Run doc tests (with coverage)
  40. if: ${{ matrix.os == 'ubuntu-latest' && matrix.python_version == '3.10' }}
  41. run: |
  42. make coverage-doctests
  43. - name: Run doc tests (without coverage)
  44. if: ${{ matrix.os != 'ubuntu-latest' || matrix.python_version != '3.10' }}
  45. run: |
  46. make doctests
  47. - name: Push code coverage
  48. env:
  49. COVERALLS_PRO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
  50. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  51. if: ${{ matrix.os == 'ubuntu-latest' && matrix.python_version == '3.10' }}
  52. run: |
  53. python3 -m poetry run coveralls --service=github