-
Notifications
You must be signed in to change notification settings - Fork 5
29 lines (29 loc) · 995 Bytes
/
tests.yml
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
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