-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 909 Bytes
/
on-push.yaml
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
name: Build headlock and run unittests
on: [push]
jobs:
###################################################
unittests:
strategy:
fail-fast: false
matrix:
python: [3.6, 3.7, 3.8, 3.9, "3.10", 3.11]
os: [windows-2022]
arch: [x64]
runs-on: ${{matrix.os}}
steps:
- name: Checkout Repository
uses: actions/checkout@v1.2.0
with:
submodules: true
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python}}
architecture: ${{matrix.arch}}
- name: Install tox
shell: bash
run: pip install tox==3.15
- name: Run Unittests
shell: bash
run: |
if [ ${{matrix.os}} = "windows-2022" ]
then export MINGW_X86_64_DIR=C:/mingw64
fi
tox -e py${{matrix.python}}-${{matrix.arch}}