1- name : Pytest (Ubuntu & Windows)
1+ name : Pytest
22on :
33 push :
4- branches : [ main ]
4+ workflow_dispatch :
55 pull_request :
6+ schedule :
7+ - cron : ' 0 0 * * *'
68jobs :
79 tests :
810 name : pytest - ${{ matrix.os }} - py${{ matrix.python-version }}
1113 fail-fast : false
1214 matrix :
1315 os : [ ubuntu-latest, windows-latest ]
14- python-version : [ "3.12 " ]
16+ python-version : [ "3.9", "3.10", "3.11", "3.12", "3.13 " ]
1517 env :
1618 PYTHONUTF8 : " 1"
1719 PYTHONPATH : ${{ github.workspace }}/service
@@ -32,24 +34,17 @@ jobs:
3234 run : |
3335 set -eux
3436 python -m pip install -U pip
35- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
36- if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
37- pip install pytest coverage nbformat nbclient
38- if [ -f service/pyproject.toml ] || [ -f service/setup.cfg ] || [ -f service/setup.py ]; then
39- pip install -e service
40- fi
37+ pip install -r service/requirements.txt
38+ pip install -r service/requirements.test.txt
4139 - name : Install deps (Windows)
4240 if : matrix.os == 'windows-latest'
4341 shell : pwsh
4442 run : |
4543 $ErrorActionPreference = "Stop"
4644 python -m pip install -U pip
47- if (Test-Path requirements.txt) { pip install -r requirements.txt }
48- if (Test-Path requirements-dev.txt) { pip install -r requirements-dev. txt }
45+ pip install -r service/ requirements.txt
46+ pip install -r service/ requirements.test. txt
4947 pip install pytest coverage nbformat nbclient
50- if (Test-Path service/pyproject.toml -or Test-Path service/setup.cfg -or Test-Path service/setup.py) {
51- pip install -e service
52- }
5348 - name : Show versions
5449 shell : bash
5550 run : |
0 commit comments