-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (34 loc) · 1.05 KB
/
pull_request.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
36
37
38
39
40
41
42
43
44
45
46
47
name: Pull Request
on: pull_request
concurrency:
group: ${{ github.event.pull_request.number }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
test:
name: Pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: citizensadvice/python-poetry-setup-action@v1
- name: Install dependencies
run: poetry install --with dev
- name: Setup Docker Compose
uses: KengoTODA/actions-setup-docker-compose@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run pytest
run: poetry run pytest -v --cov --cov-fail-under=95
ruff:
name: Ruff and MyPy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: citizensadvice/python-poetry-setup-action@v1
- name: Install dependencies
run: poetry install --with dev
- name: Run ruff format check
run: poetry run ruff format --check
- name: Run ruff check
run: poetry run ruff check
- name: Run MyPy
run: poetry run mypy .