annoying setup to make pixi env work with github runner paths and wha… #8
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: "Run pytest with Pixi env" | ||
on: ["push"] | ||
jobs: | ||
build: | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: Check out code for this commit | ||
uses: actions/checkout@v4 | ||
- name: Get pixi and install environment | ||
uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.39.5 | ||
environments: default | ||
activate-environment: true | ||
frozen: true | ||
- name: Get required assets for simulations | ||
run: | | ||
mkdir .local_dev_data | ||
mv tests/assets/* .local_dev_data/ | ||
- name: Run pytest | ||
run: pytest -v tests/ | ||
env: | ||
INITIAL_AGENTS_PATH = "/home/runner/work/mesa_abm_poc/mesa_abm_poc/vegetation/data/initial_agents.json" | ||
Check failure on line 26 in .github/workflows/pytest_with_pixi.yml GitHub Actions / Run pytest with Pixi envInvalid workflow file
|
||
LOCAL_STAC_CACHE_FSTRING = "/home/runner/work/mesa_abm_poc/mesa_abm_poc/.local_dev_data/{band_name}_{bounds_md5}.tif" | ||
SAVE_LOCAL_STAC_CACHE = True |