-
Notifications
You must be signed in to change notification settings - Fork 3
86 lines (68 loc) · 2.29 KB
/
test-package.yml
File metadata and controls
86 lines (68 loc) · 2.29 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
name: test package
on:
push:
branches:
- main
paths-ignore:
- ".github/**"
- "!.github/workflows/**"
- "docs/**"
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]
robot-version: ["6.0", "6.1", "7.0", "7.1", "7.2", "7.3"]
steps:
- uses: actions/checkout@v4
- name: Setup python ${{ matrix.python-version }} environment
id: setup-python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup Swift
if: matrix.os == 'macos-latest'
uses: swift-actions/setup-swift@v2
- name: Get swift version
if: matrix.os == 'macos-latest'
run: swift --version
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
9.0.x
8.0.x
- name: Install Hatch
uses: pypa/hatch@install
- name: Run Python Tests
run: hatch test -i py=${{ matrix.python-version }} -i rf=${{ matrix.robot-version }} -- -m "not wip"
- name: Run Robot Framework Tests
run: hatch run +py=${{ matrix.python-version }} +rf=${{ matrix.robot-version }} robot:test -e wip -- --outputdir test-results/os-${{ matrix.os }}-py-${{ matrix.python-version }}-rf-${{ matrix.robot-version }}
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-os-${{ matrix.os }}-py-${{ matrix.python-version }}-robotframework-${{ matrix.robot-version }}
path: test-results
publish-test-results:
needs: test
runs-on: ubuntu-latest
steps:
- name: Download Test Results
uses: actions/download-artifact@v4
- name: Install Robot Framework
run: pip install robotframework
- name: Merge Test Results
run: rebot --name Robotframework_Tests --outputdir merged-results test-os-*/os-*/output.xml
- name: Upload Merged Test Results
uses: actions/upload-artifact@v4
with:
name: merged-test-results
path: merged-results