-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (37 loc) · 1.17 KB
/
install-windows.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
# SPDX-FileCopyrightText: 2023 Alec Delaney
#
# SPDX-License-Identifier: MIT
name: Windows Install Test CI
on: [pull_request, push]
jobs:
test-install:
strategy:
fail-fast: false
matrix:
pyver: ["3.7", "3.8", "3.9", "3.10"]
runs-on: windows-latest
steps:
- name: Set up Python ${{ matrix.pyver }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.pyver }}
- name: Checkout Current Repo
uses: actions/checkout@v3
with:
submodules: true
- name: Find Python executable
id: find-pyexec
run: |
$pyexecloc = (get-command python).Path
"pyexec=$pyexecloc" >> $env:GITHUB_OUTPUT
- name: Install the library
run: |
${{ steps.find-pyexec.outputs.pyexec }} -m pip install --upgrade pip
${{ steps.find-pyexec.outputs.pyexec }} -m pip install .
- name: Install test requirements
run: |
${{ steps.find-pyexec.outputs.pyexec }} -m pip install -r requirements-test.txt
- name: Run tests
run: |
$process = Start-Process ${{ steps.find-pyexec.outputs.pyexec }} -Args "-m","pytest" -PassThru -Wait
exit $process.ExitCode