Decouple prod config from base, add more local examples #776
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: integration-tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build docker images | |
run: docker-compose -f docker-compose.server_ci.yml build --pull && docker-compose -f docker-compose.server_ci.yml up --no-start | |
- name: Start MySQL | |
run: docker-compose -f docker-compose.server_ci.yml start db | |
- name: Wait for MySQL to create initial database | |
run: sleep 5 | |
- name: run tests | |
run: docker-compose -f docker-compose.server_ci.yml run --rm web python3 manage.py test | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
- uses: psf/black@stable | |
with: | |
options: ". --check" |