A library that computes the ephemerides.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

79 lignes
1.8 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. 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@v3
  26. - name: Set up Python ${{ matrix.python_version }}
  27. uses: actions/setup-python@v3
  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
  40. run: |
  41. make coverage-doctests
  42. - name: Push code coverage
  43. env:
  44. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  45. COVERALLS_PARALLEL: true
  46. COVERALLS_FLAG_NAME: "Py${{ matrix.python_version }}_${{ matrix.os }}"
  47. run: |
  48. python3 -m poetry run coveralls --service=github
  49. coverage:
  50. name: Push coverage report
  51. needs: tests
  52. runs-on: ubuntu-latest
  53. steps:
  54. - uses: actions/checkout@v3
  55. - name: Prepare Python
  56. uses: actions/setup-python@v3
  57. with:
  58. python-version: "3.x"
  59. - name: Install dependencies
  60. run: |
  61. pip install -U pip poetry
  62. poetry install
  63. - name: Upload coverage report
  64. run: |
  65. poetry run coveralls --finish --service=github
  66. env:
  67. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}