-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (60 loc) · 2.98 KB
/
python-unittests.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Unittests
on:
push:
branches:
- master
- main
- '[0-9]+.[0-9]+'
- '[0-9]+.[0-9]+.[0-9]+'
pull_request:
jobs:
unittests:
continue-on-error: true
strategy:
matrix:
cfg:
- { os: ubuntu-latest, architecture: x64, python-version: "3.7" }
- { os: windows-latest, architecture: x64, python-version: "3.8" }
- { os: windows-latest, architecture: x86, python-version: "3.8" }
- { os: macos-13, architecture: x64, python-version: "3.8" }
- { os: macos-latest, architecture: arm64, python-version: "3.8" }
- { os: ubuntu-latest, architecture: x64, python-version: "3.8" }
- { os: windows-latest, architecture: x64, python-version: "3.9" }
- { os: windows-latest, architecture: x86, python-version: "3.9" }
- { os: macos-13, architecture: x64, python-version: "3.9" }
- { os: macos-latest, architecture: arm64, python-version: "3.9" }
- { os: ubuntu-latest, architecture: x64, python-version: "3.9" }
- { os: windows-latest, architecture: x64, python-version: "3.10" }
- { os: windows-latest, architecture: x86, python-version: "3.10" }
- { os: macos-13, architecture: x64, python-version: "3.10" }
- { os: macos-latest, architecture: arm64, python-version: "3.10" }
- { os: ubuntu-latest, architecture: x64, python-version: "3.10" }
- { os: windows-latest, architecture: x64, python-version: "3.11" }
- { os: windows-latest, architecture: x86, python-version: "3.11" }
- { os: macos-13, architecture: x64, python-version: "3.11" }
- { os: macos-latest, architecture: arm64, python-version: "3.11" }
- { os: ubuntu-latest, architecture: x64, python-version: "3.11" }
- { os: windows-latest, architecture: x64, python-version: "3.12" }
- { os: windows-latest, architecture: x86, python-version: "3.12" }
- { os: macos-13, architecture: x64, python-version: "3.12" }
- { os: macos-latest, architecture: arm64, python-version: "3.12" }
- { os: ubuntu-latest, architecture: x64, python-version: "3.12" }
runs-on: ${{ matrix.cfg.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Set up Python ${{ matrix.cfg.python-version }} ${{ matrix.cfg.architecture }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.cfg.python-version }}
architecture: ${{ matrix.cfg.architecture }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
pip install .
- name: Test with unittest
run: python -m unittest discover -v -s tests