Skip to content

Commit 0f20d26

Browse files
Update ci.yml
1 parent 0666400 commit 0f20d26

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,31 @@
11
name: CI
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
pull_request:
5+
36
jobs:
47
test:
58
runs-on: ubuntu-latest
69
steps:
710
- uses: actions/checkout@v4
8-
- uses: actions/setup-python@v5
11+
12+
- name: Set up Python
13+
uses: actions/setup-python@v5
914
with:
1015
python-version: '3.11'
11-
- uses: actions/cache@v4
16+
17+
- name: Cache pip
18+
uses: actions/cache@v4
1219
with:
1320
path: ~/.cache/pip
1421
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
15-
- run: pip install -r requirements.txt
16-
- run: pytest -q
22+
23+
- name: Install deps
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -r requirements.txt
27+
python -c "import sys,pytest,platform; print('Pytest',pytest.__version__,'on',platform.python_version());"
28+
29+
- name: Run tests (verbose)
30+
run: |
31+
python -m pytest -vv --maxfail=1 --disable-warnings

0 commit comments

Comments
 (0)