-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.39 KB
/
Copy pathchecks-python.yaml
File metadata and controls
59 lines (49 loc) · 1.39 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
name: Checks - Python project
on:
workflow_call:
inputs:
directory:
description: Python project directory
required: true
type: string
workflow_dispatch:
inputs:
directory:
description: Python project directory
options:
- aoc-main
- solvers/python
required: true
type: choice
permissions:
contents: read
jobs:
# Every check that also needs a uv virtual environment
checks:
name: Run checks
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Restore mise project
uses: ./.github/actions/mise-project-setup
with:
directory: ${{ inputs.directory }}
- name: Restore uv project
uses: ./.github/actions/uv-project-setup
with:
directory: ${{ inputs.directory }}
- parallel:
- name: check:mypy
run: mise run check:mypy
shell: bash
working-directory: ${{ inputs.directory }}
- name: check:pyright
run: mise run check:pyright
shell: bash
working-directory: ${{ inputs.directory }}
- name: check:pytest
run: mise run check:pytest
shell: bash
working-directory: ${{ inputs.directory }}