-
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (80 loc) · 2.34 KB
/
test.yml
File metadata and controls
89 lines (80 loc) · 2.34 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Test tap-shortcut
on:
push:
branches: [main]
paths:
- tap_shortcut/**
- tests/**
- pyproject.toml
- uv.lock
- .github/workflows/test.yml
pull_request:
types: [opened, synchronize, reopened]
paths:
- tap_shortcut/**
- tests/**
- pyproject.toml
- uv.lock
- .github/workflows/test.yml
schedule:
- cron: "0 10 * * *"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
FORCE_COLOR: "1"
# renovate: datasource=pypi depName=uv
UV_VERSION: 0.10.4
# renovate: datasource=pypi depName=tox
TOX_VERSION: 4.44.0
# renovate: datasource=pypi depName=tox-uv
TOX_UV_VERSION: 1.29.0
jobs:
tests:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
max-parallel: 2
matrix:
python-version:
- "3.14"
- "3.13"
- "3.12"
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
id: setup-python
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
with:
version: ${{ env.UV_VERSION }}
- name: Run
env:
UV_PYTHON: ${{ steps.setup-python.outputs.python-path }}
TAP_SHORTCUT_TOKEN: ${{ secrets.TAP_SHORTCUT_TOKEN }}
run: >
uvx
--with tox-uv==${{ env.TOX_UV_VERSION }}
--with tox==${{ env.TOX_VERSION }}
tox -e ${{ matrix.python-version }}
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
id: setup-python
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
with:
version: ${{ env.UV_VERSION }}
- env:
UV_PYTHON: ${{ steps.setup-python.outputs.python-path }}
run: uv tool install --with tox-uv==${{ env.TOX_UV_VERSION }} --from tox==${{ env.TOX_VERSION }} tox
- name: Static type checking
run: tox -e typing
- name: Unused, missing and transitive dependencies
run: tox -e dependencies