-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 923 Bytes
/
ci.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
name: CI
on:
push:
branches:
- develop
- main
env:
DJANGO_ENV: test
jobs:
pytest:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Python dependencies
run: |
cd test_app
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
sudo apt install -y ./wkhtmltox_0.12.6.1-2.jammy_amd64.deb
pip install --upgrade pip
pip install -r requirements.txt
- name: Run migrations
run: |
cd test_app
python manage.py makemigrations readux_ingest_ecds
python manage.py migrate
- name: Run Tests
run: |
cd test_app
pytest tests/