Correct passing of arguments optimize
->optimize
#577
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: Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
- "**.rst" | |
jobs: | |
build_wheels: | |
name: |- | |
Build wheels on ${{ matrix.os }} with | |
windows_cross_compile=${{ matrix.windows_cross_compile }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-11, ubuntu-20.04] | |
windows_cross_compile: [false, true] | |
exclude: | |
- os: macos-11 | |
windows_cross_compile: true | |
steps: | |
- name: Install dependencies | |
run: |- | |
sudo apt-get update | |
sudo apt-get install -y mingw-w64 | |
if: ${{ matrix.windows_cross_compile }} | |
- uses: actions/checkout@v3 | |
- name: Build wheels | |
run: bash build.sh | |
env: | |
WINDOWS_CROSS_COMPILE: ${{ matrix.windows_cross_compile }} | |
- name: Upload artefacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artefacts | |
path: btrack/libs/* | |
if-no-files-found: error | |
test: | |
needs: build_wheels | |
name: ${{ matrix.os }} py${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11"] | |
os: [ubuntu-latest] | |
include: | |
- os: macos-11 | |
python-version: "3.11" | |
- os: macos-latest | |
python-version: "3.11" | |
- os: windows-2019 | |
python-version: "3.11" | |
- os: windows-latest | |
python-version: "3.11" | |
- os: ubuntu-20.04 | |
python-version: "3.11" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download artefacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: artefacts | |
path: btrack/libs | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
cache-dependency-path: "pyproject.toml" | |
# these libraries enable testing on Qt on linux | |
- uses: tlambert03/setup-qt-libs@v1 | |
- name: Install dependencies | |
run: python -m pip install tox tox-gh-actions | |
- name: Test with tox | |
run: tox run | |
env: | |
OS: ${{ matrix.os }} | |
- name: Coverage | |
uses: codecov/codecov-action@v3 |