-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (45 loc) · 1.32 KB
/
tests.yml
File metadata and controls
56 lines (45 loc) · 1.32 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
55
56
name: ci
on:
push:
branches:
- master
jobs:
tests:
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
python-version: ["3.10", "3.12", "3.13"]
steps:
- uses: actions/checkout@v6
- name: Install uv and set Python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v8.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y xvfb
- name: Install dependencies
run: uv sync --managed-python --locked --group dev
- name: Run tests
run: uv run ./run_tests.sh
- name: Run lint
if: ${{ always() }}
run: |
uv run ruff check pythonhere tests
uv run ruff format --check pythonhere tests
uv run pylint pythonhere
- name: Build package
if: ${{ always() }}
run: uv run python -m build
- name: Check distribution
if: ${{ always() }}
run: uv run twine check dist/*
- name: Upload coverage to Codecov
if: matrix.python-version == '3.10'
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./pythonhere/coverage.xml
flags: unittests