Disable SZIP support in HDF5: not needed here #2233
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
name: Test conda forge env creation | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
# Cancel currently running job if a new one comes along for the same branch or tag. | |
# From https://stackoverflow.com/a/72408109. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
cancel-in-progress: ${{ github.ref_name != 'main' }} | |
jobs: | |
test-conda-env: | |
name: Test conda env | |
runs-on: ubuntu-22.04 | |
container: | |
image: continuumio/miniconda3 | |
steps: | |
- uses: actions/checkout@v4 | |
# This container does not have git-lfs installed | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Create conda env | |
run: | | |
conda env create --yes --quiet --file environment.yml | |
- name: Test conda env | |
run: | | |
. "/opt/conda/etc/profile.d/conda.sh" | |
conda activate vmecpp | |
conda install --yes --quiet pytest | |
# exclude test that requires VMEC2000 to be installed: | |
# it's not available as a conda package, and skip test | |
# that requires mgrid file from git-lfs | |
# (LFS not available in this container image) | |
python -m pytest -k 'not test_ensure_vmec2000_input_from_vmecpp_input and not test_against_reference_wout' tests/ |