-
Notifications
You must be signed in to change notification settings - Fork 24
46 lines (42 loc) · 1.19 KB
/
windows-gui-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
name: Windows GUI Tests
on:
push:
branches:
- "main"
- "[0-9]+.[0-9]+"
pull_request:
branches:
- "main"
- "[0-9]+.[0-9]+"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
build:
strategy:
fail-fast: true
matrix:
python-version: [ "3.8", "3.12" ]
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python
- name: Load cached venv
id: cached-pip-wheels
uses: actions/cache@v3
with:
path: ~/.cache
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: $HOME/AppData/Roaming/Python/Scripts/poetry install --no-interaction
- name: Run tests with pytest
run: $HOME/AppData/Roaming/Python/Scripts/poetry run pytest ./tests/gui/text_gui.py