Switch from Travis to github actions #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, ubuntu-20.04, macos-10.12] | |
arch: [x64] | |
exclude: | |
# ubuntu and macOS are not available in 32bit flavuor any more | |
- os: ubuntu-20.04 | |
arch: x86 | |
- os: macos-10.12 | |
arch: x86 | |
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:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64 | |
fi | |
tox -e py${{matrix.python}}-${{matrix.arch}} |