Debian Codegraph @

.github/workflows/ci.yml

raw symbols SCIP
1 name: CI
2
3 on:
4 push:
5 branches:
6 - main
7 tags:
8 - '*'
9 pull_request:
10 env:
11 LATEST_PY_VERSION: '3.14'
12
13 jobs:
14 tests:
15 runs-on: ubuntu-latest
16 strategy:
17 matrix:
18 python-version:
19 - '3.9'
20 - '3.10'
21 - '3.11'
22 - '3.12'
23 - '3.13'
24 - '3.14'
25
26 steps:
27 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
28 - name: Set up Python ${{ matrix.python-version }}
29 uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
30 with:
31 python-version: ${{ matrix.python-version }}
32
33 - name: Install uv
34 uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
35 with:
36 version: "0.9.*"
37 enable-cache: true
38 python-version: ${{ matrix.python-version }}
39
40 - name: Install dependencies
41 run: |
42 uv sync
43
44 - name: Run pre-commit
45 if: ${{ matrix.python-version == env.LATEST_PY_VERSION }}
46 run: |
47 uv run pre-commit run --all-files
48
49 - name: Run tests
50 run: uv run pytest --cov geojson_pydantic --cov-report xml --cov-report term-missing -s -vv
51
52 - name: Upload Results
53 if: ${{ matrix.python-version == env.LATEST_PY_VERSION }}
54 uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
55 with:
56 files: ./coverage.xml
57 flags: unittests
58 fail_ci_if_error: false
59 token: ${{ secrets.CODECOV_TOKEN }}