Adding pytest with the tiny model to macOS and windows (except amd64_arm64) runners
This commit is contained in:
@@ -68,6 +68,21 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
brew update
|
brew update
|
||||||
|
|
||||||
|
- name: Set up Python 3.10
|
||||||
|
uses: actions/setup-python@v3
|
||||||
|
with:
|
||||||
|
python-version: "3.10"
|
||||||
|
|
||||||
|
- name: Pip setup
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||||
|
|
||||||
|
- name: Build clang
|
||||||
|
id: make_build_clang
|
||||||
|
run: |
|
||||||
|
make run CC=clang
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
id: make_build
|
id: make_build
|
||||||
run: |
|
run: |
|
||||||
@@ -77,16 +92,18 @@ jobs:
|
|||||||
id: make_build_runfast
|
id: make_build_runfast
|
||||||
run: |
|
run: |
|
||||||
make runfast
|
make runfast
|
||||||
|
|
||||||
|
- name: Test with pytest
|
||||||
|
run: pytest
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Build clang
|
|
||||||
id: make_build_clang
|
|
||||||
run: |
|
|
||||||
make run CC=clang
|
|
||||||
|
|
||||||
windows-latest-make:
|
windows-latest-make:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false #necessary, otherwise the matrix breaks
|
||||||
matrix:
|
matrix:
|
||||||
arch:
|
arch:
|
||||||
- amd64
|
- amd64
|
||||||
@@ -106,11 +123,30 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
|
|
||||||
|
- name: Set up Python 3.10
|
||||||
|
if: matrix.arch != 'amd64_arm64'
|
||||||
|
uses: actions/setup-python@v3
|
||||||
|
with:
|
||||||
|
python-version: "3.10"
|
||||||
|
|
||||||
|
- name: Pip setup
|
||||||
|
if: matrix.arch != 'amd64_arm64'
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
if (Test-Path requirements.txt) {
|
||||||
|
pip install -r requirements.txt
|
||||||
|
}
|
||||||
|
|
||||||
- name: Build ${{ matrix.arch }}
|
- name: Build ${{ matrix.arch }}
|
||||||
id: build_msvc
|
id: build_msvc
|
||||||
run: |
|
run: |
|
||||||
.\build_msvc.bat
|
.\build_msvc.bat
|
||||||
|
|
||||||
|
#cross-comiled, cannot be run on host
|
||||||
|
- name: Test with pytest
|
||||||
|
if: matrix.arch != 'amd64_arm64'
|
||||||
|
run: pytest
|
||||||
|
|
||||||
windows-latest-mingw:
|
windows-latest-mingw:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
@@ -135,6 +171,26 @@ jobs:
|
|||||||
install: mingw-w64-${{matrix.env}}-gcc make
|
install: mingw-w64-${{matrix.env}}-gcc make
|
||||||
|
|
||||||
- name: Build ${{ matrix.sys }} ${{ matrix.env }}
|
- name: Build ${{ matrix.sys }} ${{ matrix.env }}
|
||||||
id: build_mingw
|
id: build_mingw
|
||||||
run: |
|
run: |
|
||||||
make win64
|
make win64
|
||||||
|
|
||||||
|
- name: Set up Python 3.10
|
||||||
|
uses: actions/setup-python@v3
|
||||||
|
with:
|
||||||
|
python-version: "3.10"
|
||||||
|
|
||||||
|
- name: Pip setup
|
||||||
|
shell: powershell
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
if (Test-Path requirements.txt) {
|
||||||
|
pip install -r requirements.txt
|
||||||
|
}
|
||||||
|
|
||||||
|
- name: Test with pytest
|
||||||
|
shell: powershell
|
||||||
|
run: pytest
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user