Scheduled daily dependency update on Wednesday #1380
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
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 --checkout $BRANCH_NAME --no-input | |
- name: Build image | |
run: docker compose up -d --build | |
- name: Run Web tests | |
run: docker compose run --rm web bash -c "python3 -m flake8 . && | |
python3 -Wall ./manage.py check --deploy && | |
python3 wait_for_postgres.py && | |
python3 -m pytest --ds=piedpiper.config --dc=Local -p no:cacheprovider -s" | |