Github Lazy. Make us lazier #874
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@v4 | |
- 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 10 | |
- 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@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
cache: 'pip' | |
- name: Install ruff | |
run: pip install ruff | |
- name: Ruff Check Linhting | |
run: ruff check --output-format=github . | |
- name: Ruff Check Formatting | |
run: ruff format --check |