Skip to content

Commit 255d1e4

Browse files
authored
Update django.yml
1 parent 763b852 commit 255d1e4

1 file changed

Lines changed: 18 additions & 15 deletions

File tree

.github/workflows/django.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
name: Django CI
2-
3-
on: [push, pull_request]
2+
Add commentMore actions
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
48

59
jobs:
6-
test:
10+
build:
11+
712
runs-on: ubuntu-latest
13+
strategy:
14+
max-parallel: 4
15+
matrix:
16+
python-version: [3.7, 3.8, 3.9]
17+
818
steps:
919
- uses: actions/checkout@v4
10-
11-
- name: Set up Python
12-
uses: actions/setup-python@v4
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v3
1322
with:
14-
python-version: '3.10'
15-
cache: 'pip'
16-
17-
- name: Install dependencies
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install Dependencies
1825
run: |
1926
python -m pip install --upgrade pip
2027
pip install -r requirements.txt
21-
22-
- name: Debug - List Files
23-
run: ls -la
24-
25-
- name: Run tests
28+
- name: Run Tests
2629
run: |
2730
python manage.py test

0 commit comments

Comments
 (0)