-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (40 loc) · 1.05 KB
/
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
36
37
38
39
40
41
42
43
name: ci
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: [ "3.9", "3.10", "3.11", "3.12" ]
name: python-${{ matrix.python }}
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup python-${{ matrix.python }}
uses: actions/setup-python@main
with:
python-version: ${{ matrix.python }}
cache: 'pip'
- name: Install Dependencies
run: pip install ".[dev]"
- name: Test
run: pytest
- name: Lint (pylint)
run: pylint trackpack test
- name: Lint (ruff)
run: ruff check --output-format=github .
formatting:
name: formatting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup Python
uses: actions/setup-python@main
with:
python-version: "3.12"
cache: 'pip'
- name: Setup
run: pip install ".[dev]"
- name: Check Formatting
run: ruff format --check --diff .