forked from canonical/snapcraft
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (45 loc) · 1.46 KB
/
Copy pathqa.yaml
File metadata and controls
46 lines (45 loc) · 1.46 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
name: QA
on:
push:
branches:
- "main"
- "feature/*"
- "hotfix/*"
- "release/*"
- "renovate/*"
pull_request:
jobs:
filter:
runs-on: ubuntu-slim
outputs:
source-files: ${{ steps.filter.outputs.source-files }}
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1
id: filter
with:
# Combine multiple negation checks into a union (¬A ∧ ¬B ∧ ¬C), because individual entries are checked independently (A ∨ B ∨ C).
# If we ever need to filter only for docs, glob 'docs/**/*' and '**/*.md'
filters: |
source-files:
- '!({docs/**,*.md,**/*.md,.readthedocs.yaml})'
lint:
uses: canonical/starflow/.github/workflows/lint-python.yaml@main
needs: filter
with:
source-files: ${{ needs.filter.outputs.source-files }}
test:
uses: canonical/starflow/.github/workflows/test-python.yaml@main
needs: filter
with:
source-files: ${{ needs.filter.outputs.source-files }}
# Snapcraft currently only tests on Python 3.12 on Ubuntu 24.04
fast-test-platforms: '["ubuntu-24.04"]'
slow-test-platforms: '["ubuntu-24.04"]'
lowest-python-platform: "ubuntu-24.04"
fast-test-python-versions: '["3.12"]'
slow-test-python-versions: '["3.12"]'
lowest-python-version: "3.10"