-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (27 loc) · 962 Bytes
/
ci.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
30
31
32
33
34
35
name: CI
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: ruff
run: docker compose -f docker-compose.dev.yml run pixel-battle ruff check src tests -n
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: mypy
run: docker compose -f docker-compose.dev.yml run pixel-battle mypy src
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: start all docker compose services
run: docker compose -f docker-compose.dev.yml up -d
- name: create redis cluster
run: docker exec -it pixel-battle-redis1 ash /mnt/create-cluster.sh
- name: pytest
run: docker compose -f docker-compose.dev.yml run pixel-battle pytest tests --cov --cov-branch
- name: upload coverage to codecov
uses: codecov/codecov-action@v2