Skip to content

Commit 285ae33

Browse files
committed
ci: test pythonpath
1 parent 07006b6 commit 285ae33

File tree

1 file changed

+28
-25
lines changed

1 file changed

+28
-25
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,33 @@
11
name: CI — Test & Lint
22

33
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
88

99
jobs:
10-
test:
11-
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
python-version: [3.8, 3.11]
15-
steps:
16-
- uses: actions/checkout@v4
17-
- name: Set up Python
18-
uses: actions/setup-python@v4
19-
with:
20-
python-version: ${{ matrix.python-version }}
21-
- name: Install dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install -r requirements.txt
25-
- name: Run autopep8 check
26-
run: |
27-
pip install autopep8
28-
autopep8 --diff --recursive app tests
29-
- name: Run tests
30-
run: pytest -q
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: [3.8, 3.11]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -r requirements.txt
25+
- name: Run autopep8 check
26+
run: |
27+
pip install autopep8
28+
autopep8 --diff --recursive app tests
29+
30+
- name: Run tests
31+
env:
32+
PYTHONPATH: ${{ github.workspace }}
33+
run: pytest -q

0 commit comments

Comments
 (0)