-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-ci.yml
More file actions
35 lines (30 loc) · 898 Bytes
/
Copy pathpython-ci.yml
File metadata and controls
35 lines (30 loc) · 898 Bytes
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
# Caller workflow for the reusable Python CI in ArchonVII/github-workflows.
# Defaults assume:
# - pyproject.toml at the repo root
# - ruff for lint + format-check
# - pyright for typecheck
# - pytest for tests
# Override the *-command inputs to swap any of these.
#
# The job is named `ci-success` so branch protection can require a single
# consistent check name regardless of which `workflow.*-ci` template was
# installed (node, python, or minimal).
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci-success:
uses: ArchonVII/github-workflows/.github/workflows/python-ci.yml@v1
with:
python-versions: '["3.12"]'
# use-uv: true
# typecheck-command: 'mypy .'
# test-command: 'pytest -n auto'