-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (42 loc) · 1.14 KB
/
Copy pathci.yml
File metadata and controls
54 lines (42 loc) · 1.14 KB
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
48
49
50
51
52
53
54
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
quality:
name: Tests and lint (Python 3.12)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: pip
cache-dependency-path: |
requirements.txt
requirements-dev.txt
- name: Upgrade packaging tools
run: python -m pip install --upgrade pip setuptools wheel
- name: Install development dependencies
run: python -m pip install -r requirements-dev.txt
- name: Install project package
run: python -m pip install --no-deps -e .
- name: Verify dependency compatibility
run: python -m pip check
- name: Run Ruff
run: python -m ruff check src tests
- name: Run unit tests
run: python -m pytest -q