您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

49 行
992 B

  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. - windows-latest
  21. python-version:
  22. - '3.8'
  23. - '3.9'
  24. - '3.10'
  25. - '3.11'
  26. - '3.12'
  27. name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
  28. steps:
  29. - uses: actions/checkout@v4
  30. - name: Set up Python
  31. uses: actions/setup-python@v5
  32. with:
  33. python-version: ${{ matrix.python-version }}
  34. - name: Install dependencies
  35. run: |
  36. pip install -U pip poetry
  37. poetry env use $(which python)
  38. poetry install
  39. - name: E2E tests
  40. run: |
  41. make tests