-
-
Notifications
You must be signed in to change notification settings - Fork 12
43 lines (41 loc) · 1.09 KB
/
python-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
name: Python Test
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
name: Python Windows Test
strategy:
fail-fast: false
matrix:
os: [windows-latest]
python: ["3.11"]
experimental: [false]
# include:
# - os: windows-latest
# python: "3.12-dev"
# experimental: true
continue-on-error: ${{ matrix.experimental }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- name: Install Poetry
run: |
pipx install "poetry>=1.7.0"
- name: Set up Python ${{ matrix.python }}
id: pysetup
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: "poetry"
- name: Install package and dependencies, then run tests
run: |
cd src
poetry env use '${{ steps.pysetup.outputs.python-path }}'
poetry install
- name: Run Tests
run: |
cd src
poetry run python -m unittest discover "tests" -p '*_test.py'