-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (49 loc) · 1.64 KB
/
ci.yml
File metadata and controls
54 lines (49 loc) · 1.64 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, pull_request]
env:
PACKAGE_NAME: toolbox-python
UV_LINK_MODE: copy
UV_NATIVE_TLS: true
UV_NO_SYNC: true
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@v5
- name: Set up uv
uses: astral-sh/setup-uv@v6
- name: Set up Python
uses: actions/setup-python@v5
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: 15
name: Run Checks on '${{ matrix.os }}' with '${{ matrix.python-version }}'
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up uv
uses: astral-sh/setup-uv@v6
- name: Set up Python
uses: actions/setup-python@v5
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