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.

81 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-latest
  17. - windows-latest
  18. python_version:
  19. - '3.8'
  20. - '3.9'
  21. - '3.10'
  22. - '3.11'
  23. - '3.12'
  24. - '3.13'
  25. - '3.14'
  26. name: Python ${{ matrix.python_version }} (${{ matrix.os }})
  27. steps:
  28. - uses: actions/checkout@v5
  29. - name: Set up Python ${{ matrix.python_version }}
  30. uses: actions/setup-python@v6
  31. with:
  32. python-version: ${{ matrix.python_version }}
  33. - name: Prepare environment
  34. run: |
  35. python3 -m pip install --upgrade pip poetry
  36. - name: Install dependencies
  37. env:
  38. PIP_PREFER_BINARY: 1
  39. run: |
  40. python3 -m poetry install --with=dev
  41. - name: Run doc tests
  42. run: |
  43. make coverage-doctests
  44. - name: Push code coverage
  45. env:
  46. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  47. COVERALLS_PARALLEL: true
  48. COVERALLS_FLAG_NAME: "Py${{ matrix.python_version }}_${{ matrix.os }}"
  49. run: |
  50. python3 -m poetry run coveralls --service=github
  51. coverage:
  52. name: Push coverage report
  53. needs: tests
  54. runs-on: ubuntu-latest
  55. steps:
  56. - uses: actions/checkout@v5
  57. - name: Prepare Python
  58. uses: actions/setup-python@v6
  59. with:
  60. python-version: "3.x"
  61. - name: Install dependencies
  62. run: |
  63. pip install -U pip poetry
  64. poetry install
  65. - name: Upload coverage report
  66. run: |
  67. poetry run coveralls --finish --service=github
  68. env:
  69. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}