Skip to content

Simulated stage2: detr values #234

Simulated stage2: detr values

Simulated stage2: detr values #234

Workflow file for this run

name: nox
on:
pull_request:
push:
branches: [main]
jobs:
test:
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10"]
steps:
- name: Ignore big data files
run: |
git config --global lfs.fetchexclude 'data/simulated/yield'
- uses: actions/checkout@v3
with:
lfs: true
fetch-depth: 0
- name: Checkout LFS objects
run: git lfs checkout
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set Python version for nox
run: echo "PY_VERSION=$(echo ${version})" >> $GITHUB_ENV
shell: bash
env:
version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install nox
- name: Test with nox
run: nox -e "pytest-${{ env.PY_VERSION }}"
- name: Commit notebooks
if: matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.10'
run: |
git branch --delete --force "executed_notebooks" || true
git checkout -b executed_notebooks
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Add executed notebook" -a
- name: Push notebooks
if: matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.10'
uses: ad-m/github-push-action@master
with:
force: true
branch: executed_notebooks
- uses: actions/upload-artifact@v3
with:
name: notebooks
path: notebooks/*.ipynb