Sd 1410 clip #222
Workflow file for this run
This file contains hidden or 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
# | |
# DeGirum GitHub CI build script | |
# Copyright 2023 DeGirum Corporation | |
# | |
# PySDKExamples merge workflow: runs tests on PySDKExamples install scripts and jupyter notebooks | |
# | |
name: CI Merge | |
on: | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
build: | |
# Setup matrix on Ubuntu and Windows runners | |
strategy: | |
# do not abort other jobs on job failure | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, windows-2019] | |
include: | |
- default_shell: bash -eo pipefail -l {0} | |
- os: windows-2019 | |
default_shell: cmd | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: ${{ matrix.default_shell }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
# bash install | |
- name: run bash install script | |
if: ${{ contains(matrix.os, 'ubuntu') }} | |
run: | | |
sudo apt update && sudo apt install -y ffmpeg | |
./install.sh | |
- name: verify bash install and run unit tests | |
if: ${{ contains(matrix.os, 'ubuntu') }} | |
run: | | |
uname -a | |
eval "$(conda shell.bash hook)" | |
conda activate degirum | |
python -c 'import degirum; print(degirum.__version__)' | |
jupyter --version | |
python -m pip install pytest pytest-xdist SSIM-PIL | |
python -m pytest -n auto -vs --token=${{ secrets.CS_TOKEN }} | |
# batch install | |
- name: run batch install script | |
if: ${{ contains(matrix.os, 'windows') }} | |
run: install.bat | |
- name: verify batch install and run unit tests | |
if: ${{ contains(matrix.os, 'windows') }} | |
run: | | |
call %USERPROFILE%\miniconda3\condabin\conda.bat activate degirum | |
python -c "import degirum; print(degirum.__version__)" | |
jupyter --version | |
python -m pip install pytest pytest-xdist SSIM-PIL | |
python -m pytest -n auto -vs --token=${{ secrets.CS_TOKEN }} |