File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : pre-commit and tests
1+ name : pre-commit
22
33on :
44 pull_request :
3434 echo "$newfiles"
3535 exit 1
3636 fi
37-
38- tests :
39- runs-on : ubuntu-22.04
40- steps :
41- - uses : actions/checkout@v4
42- - uses : actions/setup-python@v5
43- with :
44- python-version : " 3.11"
45- - name : Install uv and sync dev dependencies
46- run : |
47- pip install uv
48- uv venv
49- echo "VIRTUAL_ENV=$PWD/.venv" >> $GITHUB_ENV
50- echo "$PWD/.venv/bin" >> $GITHUB_PATH
51- uv sync --dev
52- - name : Run tests with pytest
53- run : pytest
Original file line number Diff line number Diff line change 1+ name : tests
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - " main*"
7+ push :
8+ branches :
9+ - " main"
10+
11+ jobs :
12+ tests :
13+ runs-on : ubuntu-22.04
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : actions/setup-python@v5
17+ with :
18+ python-version : " 3.11"
19+ - name : Install uv and sync dev dependencies
20+ run : |
21+ pip install uv
22+ uv venv
23+ echo "VIRTUAL_ENV=$PWD/.venv" >> $GITHUB_ENV
24+ echo "$PWD/.venv/bin" >> $GITHUB_PATH
25+ uv sync --dev
26+ - name : Run tests with pytest
27+ run : pytest
You can’t perform that action at this time.
0 commit comments