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.9 KiB

  1. name: Unit tests
  2. on:
  3. push:
  4. branches: [main, features]
  5. pull_request:
  6. branches: [main, features]
  7. jobs:
  8. legacy-unit-tests:
  9. runs-on: ${{ matrix.os }}
  10. strategy:
  11. fail-fast: false
  12. matrix:
  13. os:
  14. - ubuntu-18.04
  15. - ubuntu-20.04
  16. - macos-10.15
  17. - macos-11.0
  18. python-version:
  19. - '3.7'
  20. - '3.8'
  21. - '3.9'
  22. name: Legacy unit tests (Python ${{ matrix.python-version }} on ${{ matrix.os }})
  23. steps:
  24. - uses: actions/checkout@v1
  25. - name: Set up Python
  26. uses: actions/setup-python@v1
  27. with:
  28. python-version: ${{ matrix.python-version }}
  29. - name: Install dependencies
  30. run: |
  31. pip install --upgrade pip pipenv
  32. pipenv lock --pre
  33. pipenv sync --dev
  34. - name: Unit tests
  35. env:
  36. COVERALLS_PRO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
  37. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  38. run: |
  39. make test
  40. pipenv run coveralls --service=github
  41. unit-tests:
  42. runs-on: ${{ matrix.os }}
  43. strategy:
  44. fail-fast: false
  45. matrix:
  46. os:
  47. - ubuntu-18.04
  48. - ubuntu-20.04
  49. - macos-10.15
  50. - macos-11.0
  51. python-version:
  52. - '3.7'
  53. - '3.8'
  54. - '3.9'
  55. name: Unit tests (Python ${{ matrix.python-version }} on ${{ matrix.os }})
  56. steps:
  57. - uses: actions/checkout@v1
  58. - name: Set up Python
  59. uses: actions/setup-python@v1
  60. with:
  61. python-version: ${{ matrix.python-version }}
  62. - name: Install dependencies
  63. run: |
  64. pip install --upgrade pip pipenv
  65. pipenv lock --pre
  66. pipenv sync --dev
  67. - name: Unit tests
  68. env:
  69. COVERALLS_PRO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
  70. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  71. run: |
  72. make test
  73. pipenv run coveralls --service=github