-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.65 KB
/
Copy pathci.yml
File metadata and controls
52 lines (49 loc) · 1.65 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
name: CI
on: [push, pull_request]
env:
PACKAGE_NAME: ts-stat-tests
UV_LINK_MODE: copy
UV_NO_SYNC: true
UV_INDEX_STRATEGY: unsafe-best-match
PYTHONIOENCODING: utf-8
jobs:
check:
if: github.ref_type == 'branch' && github.event_name == 'push' && github.ref_name != 'main'
name: Run Checks
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up UV
uses: astral-sh/setup-uv@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version-file: pyproject.toml
- name: Install dependencies
run: uv sync --no-cache --all-groups --upgrade --reinstall-package=${{ env.PACKAGE_NAME }}
- name: Run checks
run: uv run ./src/utils/scripts.py check
ci:
if: github.event_name == 'pull_request' && github.base_ref == 'main'
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
fail-fast: false
max-parallel: 30
name: Run checks on '${{ matrix.os }}' with Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up UV
uses: astral-sh/setup-uv@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --no-cache --all-groups --upgrade --reinstall-package=${{ env.PACKAGE_NAME }}
- name: Run checks
run: uv run ./src/utils/scripts.py check