-
Notifications
You must be signed in to change notification settings - Fork 12
58 lines (55 loc) · 1.56 KB
/
workflow_simple_test.yaml
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
# Copyright 2025 Canonical Ltd.
# See LICENSE file for licensing details.
name: Workflow Unit Tests
on:
pull_request:
jobs:
simple:
uses: ./.github/workflows/test.yaml
secrets: inherit
strategy:
fail-fast: false
matrix:
python-version:
- '3.8'
- '3.10'
- '3.12'
with:
working-directory: "tests/workflows/integration/test-upload-charm/"
self-hosted-runner: false
python-version: ${{ matrix.python-version }}
simple-uv:
uses: ./.github/workflows/test.yaml
secrets: inherit
strategy:
fail-fast: false
matrix:
python-version:
- '3.8'
- '3.10'
- '3.12'
with:
working-directory: "tests/workflows/integration/test-upload-charm/"
self-hosted-runner: false
python-version: ${{ matrix.python-version }}
with-uv: true
simple-self-hosted:
uses: ./.github/workflows/test.yaml
secrets: inherit
with:
working-directory: "tests/workflows/integration/test-upload-charm/"
self-hosted-runner: true
self-hosted-runner-label: "edge"
check:
runs-on: ubuntu-latest
if: always() && !cancelled()
timeout-minutes: 5
needs:
- simple
- simple-uv
- simple-self-hosted
steps:
- run: |
[ '${{ needs.simple.result }}' = 'success' ] || (echo simple failed && false)
[ '${{ needs.simple-uv.result }}' = 'success' ] || (echo simple-uv failed && false)
[ '${{ needs.simple-self-hosted.result }}' = 'success' ] || (echo simple-self-hosted failed && false)