-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.19 KB
/
ci-testing-unit.yml
File metadata and controls
40 lines (37 loc) · 1.19 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
name: Unit Testing
on: [push, pull_request]
jobs:
lint:
name: Lint Code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
python-version: '3.13'
- name: Run Ruff (lint + formatting + import order)
run: .venv/bin/ruff check .
- name: Run Ruff format check (like Black)
run: .venv/bin/ruff format --check .
test:
name: Unit Testing
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.12']
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
with:
python-version: ${{ matrix.python-version }}
- name: Install package in development mode
run: uv pip install -e .
- name: Run tests with coverage
run: |
source .venv/bin/activate
pytest --cov=ontograph tests/
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: .coverage*