Skip to content

[pre-commit.ci] pre-commit autoupdate #539

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #539

Workflow file for this run

name: Tests
on:
push:
branches:
- '**'
pull_request:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Create the .env settings file
run: cp .env.example .env.dev
- name: Update .env.dev file
run: |
echo 'DEBUG=on' >> .env.dev
- name: Build Image
run: docker-compose -f docker-compose.dev.yml up --build -d
- name: Run tests
run: docker exec mock_web_app python3 -m unittest doctor.tests