Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

66 rader
1.4 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.7'
  22. - '3.8'
  23. - '3.9'
  24. - '3.10'
  25. name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
  26. steps:
  27. - uses: actions/checkout@v1
  28. - name: Set up Python
  29. uses: actions/setup-python@v1
  30. with:
  31. python-version: ${{ matrix.python-version }}
  32. - name: Prepare tests
  33. run: |
  34. sudo gem install ronn
  35. pip install -U pip pipenv
  36. pipenv sync --dev
  37. make manpage
  38. - name: E2E tests
  39. run: |
  40. make tests
  41. - name: Install TeXLive (Ubuntu)
  42. if: ${{ matrix.os == 'ubuntu-latest' }}
  43. run: |
  44. sudo apt-get install -y texlive texlive-latex-extra
  45. - name: E2E tests
  46. env:
  47. TEXLIVE_INSTALLED: 1
  48. run: |
  49. make tests
  50. - name: manpage (section 1)
  51. run: |
  52. man -P $(which cat) manpage/kosmorro.1
  53. - name: manpage (section 7)
  54. run: |
  55. man -P $(which cat) manpage/kosmorro.7