-
Notifications
You must be signed in to change notification settings - Fork 479
63 lines (52 loc) · 1.6 KB
/
CI_experiment.yml
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
# This is a basic workflow to help you get started with Actions
name: CI experiment
# Controls when the action will run.
on:
workflow_dispatch:
jobs:
test_run:
runs-on: [lab-mac]
strategy:
matrix:
python_version: ["3.11"]
fail-fast: false
env:
TEST_FILE: client-sanity-${{github.run_number}}-${{ matrix.python_version }}
PYTHON_VERSION: ${{ matrix.python_version }}
timeout-minutes: 120
steps:
- name: Check out sources
uses: actions/checkout@v4
- name: Setup python environment
run: |
$(brew --prefix)/bin/python${PYTHON_VERSION} -m venv venv
source venv/bin/activate
- name: Upgrade pip
run: |
venv/bin/pip install --upgrade pip
- name: install dependencies
run: |
venv/bin/pip install pytest
venv/bin/pip install pytest-qt
- name: Install client
run: |
venv/bin/pip install -e .
- name: Run test suite
run: pytest --verbose --html=${{env.TEST_FILE}}.html --junit-xml ${{env.TEST_FILE}}.xml
- name: Upload test file
if: always()
uses: actions/upload-artifact@v4
with:
name: ${{env.TEST_FILE}}_results
if-no-files-found: warn
path: |
${{env.TEST_FILE}}.html
${{env.TEST_FILE}}.xml
assets/style.css
- name: Pretty print test results
if: always()
uses: pmeier/pytest-results-action@main
with:
path: ${{env.TEST_FILE}}.xml
summary: true
title: Test results