-
-
Notifications
You must be signed in to change notification settings - Fork 16
39 lines (37 loc) · 995 Bytes
/
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
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.12"]
experimental: [false]
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'