Skip to content

Commit adf8c63

Browse files
committed
build: CI workflow
1 parent 40e89c9 commit adf8c63

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
max-parallel: 4
15+
matrix:
16+
python-version: [3.11, 3.12]
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Python ${{ matrix.python-version }}
23+
uses: actions/setup-python@v3
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install -r src/requirements.txt
31+
pip install -r src/requirements-dev.txt
32+
33+
- name: Run tests
34+
env:
35+
SECRET_KEY: dummysecretkey
36+
DEBUG: True
37+
run: |
38+
cd src
39+
python3 manage.py test

0 commit comments

Comments
 (0)