Skip to content

Compatibility

Compatibility #1

Workflow file for this run

name: Compatibility
on:
schedule:
- cron: '0 4 * * SUN'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ubuntu-latest

Check failure on line 11 in .github/workflows/compatibility.yml

View workflow run for this annotation

GitHub Actions / Compatibility

Invalid workflow file

The workflow is not valid. .github/workflows/compatibility.yml (Line: 11, Col: 13): Unexpected value 'ubuntu-latest' .github/workflows/compatibility.yml (Line: 12, Col: 25): Unexpected value '3.10'
python-version: '3.10'
toxenv: py310-test-all-latest
# release: [main, latest] # there are no releases yet so this would break
release: main
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- if: matrix.release != 'main'
name: Checkout Release
run: |
git checkout tags/$(curl -s https://api.github.com/repos/simonsobs/SOLikeT/releases/${{ matrix.release }} | python -c "import sys, json; print(json.load(sys.stdin)['tag_name'])")
- name: Install Conda w/ Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: false
python-version: ${{ matrix.python-version }}
channels: conda-forge
- name: Install Dependencies
shell: bash -el {0}
run: |
pip install tox-conda
- name: Run Tests
shell: bash -el {0}
run: |
tox -e ${{ matrix.toxenv }} ${{ matrix.toxargs }} -- ${{ matrix.toxposargs }}