-
Notifications
You must be signed in to change notification settings - Fork 192
33 lines (30 loc) · 885 Bytes
/
push.yaml
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
name: CI
on:
push:
branches: master
pull_request:
branches: master
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./piedpiper-web
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Scaffold Project
working-directory: ./
run: |
python -m pip install --upgrade pip
pip install --user cookiecutter
cookiecutter gh:agconti/cookiecutter-django-rest --no-input
- name: Start docker-compose
run: docker compose up -d
- name: Run Web tests
run: docker compose run --rm web bash -c "flake8 . &&
python wait_for_postgres.py &&
python -Wall ./manage.py test"