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

  1. name: Unit tests
  2. on:
  3. push:
  4. branches: [master, features]
  5. pull_request:
  6. branches: [master, 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 sync -d
  33. - name: Unit tests
  34. env:
  35. COVERALLS_PRO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
  36. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  37. run: |
  38. make test
  39. pipenv run coveralls --service=github
  40. unit-tests:
  41. runs-on: ${{ matrix.os }}
  42. strategy:
  43. fail-fast: false
  44. matrix:
  45. os:
  46. - ubuntu-18.04
  47. - ubuntu-20.04
  48. - macos-10.15
  49. - macos-11.0
  50. python-version:
  51. - '3.7'
  52. - '3.8'
  53. - '3.9'
  54. - '3.10'
  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 sync -d
  66. - name: Unit tests
  67. env:
  68. COVERALLS_PRO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
  69. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  70. run: |
  71. make test
  72. pipenv run coveralls --service=github