-
Notifications
You must be signed in to change notification settings - Fork 2.9k
87 lines (84 loc) · 2.61 KB
/
on-pull-request.yml
File metadata and controls
87 lines (84 loc) · 2.61 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
# Full PR suite. PRs need to pass this pipeline in order to be moved to the
# merge queue, where they'll use the on-merge-queue workflow for the final
# merge to the base branch.
name: Pull Requests
on:
pull_request:
branches: [main, "stable/*"]
concurrency:
group: ${{ github.repository }}-${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
lint-docs:
if: github.repository_owner == 'Qiskit'
name: Docs and Lint
uses: ./.github/workflows/lint_docs.yml
main-tests-rust:
name: Rust Unit Tests
uses: ./.github/workflows/rust-tests.yml
if: github.repository_owner == 'Qiskit'
with:
python-version: "3.10"
runner: ubuntu-latest
main-tests-images:
name: Image Comparison Tests
uses: ./.github/workflows/image-tests.yml
if: github.repository_owner == 'Qiskit'
with:
python-version: "3.10"
runner: ubuntu-latest
# The rest of the PR pipeline is to test the oldest and newest supported
# versions of Python.
main-tests-ubuntu-3-10:
name: Python Unit Tests
uses: ./.github/workflows/test-linux.yml
if: github.repository_owner == 'Qiskit'
strategy:
matrix:
runner: [ubuntu-latest, ubuntu-24.04-arm]
with:
python-version: "3.10"
install-optionals: true
runner: ${{ matrix.runner }}
qiskit-pycache: false
main-tests-ubuntu-3-13:
if: github.repository_owner == 'Qiskit'
name: Python Unit Tests
strategy:
matrix:
runner: ["ubuntu-latest", "ubuntu-24.04-arm"]
uses: ./.github/workflows/test-linux.yml
with:
python-version: "3.13"
install-from-sdist: true
install-optionals: false
runner: ${{ matrix.runner }}
main-tests-mac:
if: github.repository_owner == 'Qiskit'
name: Python Unit Tests
strategy:
matrix:
python_version: ["3.10", "3.13"]
runner: ["macos-14"]
uses: ./.github/workflows/test-mac.yml
with:
python-version: ${{ matrix.python_version }}
install-optionals: ${{ matrix.python_version == '3.10'}}
runner: ${{ matrix.runner }}
main-tests-windows:
if: github.repository_owner == 'Qiskit'
name: Python Unit Tests
strategy:
matrix:
python_version: ["3.10", "3.13"]
runner: ["windows-latest"]
uses: ./.github/workflows/test-windows.yml
with:
python-version: ${{ matrix.python_version }}
install-optionals: ${{ matrix.python_version == '3.10'}}
runner: ${{ matrix.runner }}
c-tests:
if: github.repository_owner == 'Qiskit'
name: C API Unit Tests
uses: ./.github/workflows/ctests.yml