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.

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