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.

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