-
-
Notifications
You must be signed in to change notification settings - Fork 107
64 lines (60 loc) · 1.71 KB
/
windows-tests.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
name: Windows tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
windows:
name: Windows Py${{ matrix.PYTHON_VERSION }} - ${{ matrix.QT_BINDING }}
timeout-minutes: 15
runs-on: windows-latest
env:
CI: True
QT_API: ${{ matrix.QT_BINDING }}
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
RUNNER_OS: 'windows'
strategy:
fail-fast: false
matrix:
PYTHON_VERSION: ['3.7', '3.10']
QT_BINDING: ['pyqt5', 'pyside2']
steps:
- name: Checkout branch
uses: actions/checkout@v1
- name: Install Conda
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
auto-update-conda: false
auto-activate-base: false
python-version: ${{ matrix.PYTHON_VERSION }}
channels: conda-forge
channel-priority: strict
- name: Install package dependencies
shell: bash -l {0}
run: conda env update --file requirements/environment_tests_${{ matrix.QT_BINDING }}.yml
- name: Install Package
shell: bash -l {0}
run: pip install -e .
- name: Show environment information
shell: bash -l {0}
run: |
conda info
conda list
- name: Run tests
shell: bash -l {0}
run: |
if [ "$QT_BINDING" = "pyside2" ]; then
python example.py
fi
pytest -x -vv --cov-report xml --cov=qtawesome qtawesome
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}