Skip to content

Commit a703c5c

Browse files
Update django.yml
1 parent 986dbec commit a703c5c

File tree

1 file changed

+23
-15
lines changed

1 file changed

+23
-15
lines changed

.github/workflows/django.yml

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,31 @@ on:
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312
strategy:
14-
max-parallel: 4
1513
matrix:
16-
python-version: [3.7, 3.8, 3.9]
14+
python-version: [3.8, 3.9, 3.10]
1715

1816
steps:
19-
- uses: actions/checkout@v4
20-
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v3
22-
with:
23-
python-version: ${{ matrix.python-version }}
24-
- name: Install Dependencies
25-
run: |
26-
python -m pip install --upgrade pip
27-
pip install -r requirements.txt
28-
- name: Run Tests
29-
run: |
30-
python main.py
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -r requirements.txt
29+
pip install pytest
30+
31+
- name: Run tests
32+
run: |
33+
pytest -v --maxfail=1 --disable-warnings
34+
35+
- name: Lint code (optional but recommended)
36+
run: |
37+
pip install flake8
38+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

0 commit comments

Comments
 (0)