-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.03 KB
/
backend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Backend Code CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"] # can add windows-latest, macos-latest
python: ["3.11"]
name: build/${{ matrix.python }}/${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 60
defaults:
run:
working-directory: backend
steps:
- name: Checkout Source
uses: actions/checkout@v4
with:
# require history to get back to last tag for version number of branches
fetch-depth: 0
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install Python Dependencies
run: |
pip install pipenv build
pipenv install --dev --python $(python -c 'import sys; print(sys.executable)') && pipenv graph
- name: Run Tests
run: DJANGO_CI=true pipenv run tests