-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (45 loc) · 1.72 KB
/
integration-tests.yml
File metadata and controls
57 lines (45 loc) · 1.72 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
name: Integration Tests
on:
pull_request:
branches: [main]
merge_group:
types: [checks_requested]
workflow_dispatch:
concurrency:
group: python-integration-tests-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
integration-tests:
name: integration-tests
runs-on: ubuntu-24.04
steps:
- name: PR placeholder
if: github.event_name == 'pull_request'
run: echo "Integration tests run only in the merge queue."
- name: Check out repository
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
uses: actions/checkout@v6
- name: Set up Python
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install Poetry
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
run: python -m pip install --upgrade pip poetry
- name: Show tool versions
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
run: |
python --version
poetry --version
- name: Install dependencies
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
run: poetry install --with dev --no-interaction
- name: Build package
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
run: poetry build
- name: Run integration tests
if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch'
run: poetry run pytest tests/integration