-
-
Notifications
You must be signed in to change notification settings - Fork 10
56 lines (48 loc) · 1.24 KB
/
ci.yml
File metadata and controls
56 lines (48 loc) · 1.24 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
name: CI
on:
pull_request:
push:
branches:
- main
workflow_call:
# Cancel active CI runs for a PR before starting another run
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash # https://github.com/beeware/briefcase/pull/912
env:
FORCE_COLOR: "1"
jobs:
pre-commit:
name: Pre-commit checks
uses: beeware/.github/.github/workflows/pre-commit-run.yml@main
with:
pre-commit-source: "--group pre-commit"
lint:
needs: [ pre-commit ]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v6.2.0
with:
python-version: "3.X"
cache: pip
cache-dependency-path: |
pyproject.toml
.pre-commit-config.yaml
- name: Install system dependencies
run: |
sudo apt-get install aspell aspell-en
- name: Update pip
run: python -m pip install -U pip
- name: Install Tox
run: python -m pip install --group 'tox-uv'
- name: Perform lint checks
run: python -m tox -e docs-lint