-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 875 Bytes
/
test.yml
File metadata and controls
37 lines (35 loc) · 875 Bytes
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
name: Tests
on:
push:
branches:
- "*"
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.8.2
- name: Use example config
run: cp backup/config.example.py backup/config.py
- name: Install dependencies
run: poetry install
- name: Static type checking
run: make type
- name: Lint
run: make lint
- name: Formatting
run: make format-check
- name: Unit tests
run: make test