Skip to content

Commit 4da9701

Browse files
Update ci.yml
1 parent 9f32072 commit 4da9701

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,32 @@ on:
33
push:
44
pull_request:
55
jobs:
6-
ok:
6+
test:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
1010
- uses: actions/setup-python@v5
1111
with:
1212
python-version: "3.11"
13-
- name: Python sanity
13+
14+
- name: Install pytest only
15+
run: |
16+
python -m pip install --upgrade pip
17+
pip install pytest==8.3.3
18+
19+
- name: Show repo and test file
1420
run: |
1521
python -V
16-
python - <<'PY'
17-
print("python works")
18-
PY
22+
ls -la
23+
echo "--- tests dir ---"
24+
ls -la tests || true
25+
echo "--- test file content ---"
26+
test -f tests/test_ci.py && sed -n '1,120p' tests/test_ci.py || echo "tests/test_ci.py is missing"
27+
28+
- name: Collect only this file
29+
run: |
30+
pytest --collect-only -q tests/test_ci.py -vv
31+
32+
- name: Run just this file
33+
run: |
34+
pytest -vv tests/test_ci.py

0 commit comments

Comments
 (0)