You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

56 lines
1.1 KiB

  1. name: Tests
  2. on:
  3. push:
  4. branches: [master, features]
  5. pull_request:
  6. branches: [master, features]
  7. schedule:
  8. # Run the tests every day at 6:00 AM.
  9. # This allows to run the tests against the relative dates
  10. - cron: "0 6 * * *"
  11. jobs:
  12. e2e-tests:
  13. runs-on: ${{ matrix.os }}
  14. strategy:
  15. fail-fast: false
  16. matrix:
  17. os:
  18. - ubuntu-latest
  19. - macos-latest
  20. python-version:
  21. - '3.8'
  22. - '3.9'
  23. - '3.10'
  24. - '3.11'
  25. name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
  26. steps:
  27. - uses: actions/checkout@v3
  28. - name: Set up Python
  29. uses: actions/setup-python@v4
  30. with:
  31. python-version: ${{ matrix.python-version }}
  32. - name: Prepare tests
  33. run: |
  34. pip install -U pip poetry
  35. poetry install
  36. - name: E2E tests
  37. run: |
  38. make tests
  39. - name: Install TeXLive (Ubuntu)
  40. if: ${{ matrix.os == 'ubuntu-latest' }}
  41. run: |
  42. sudo apt-get install -y texlive texlive-latex-extra
  43. - name: E2E tests
  44. env:
  45. TEXLIVE_INSTALLED: 1
  46. run: |
  47. make tests