Skip to content

Commit

Permalink
use new version of micromamba that exports pip packages
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Nov 26, 2024
1 parent aebf81f commit af07939
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 37 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,13 @@ jobs:
cache-downloads-key: downloads-${{ needs.date.outputs.date }}
cache-environment: true
cache-environment-key: environment-${{ needs.date.outputs.date }}
micromamba-version: '2.0.4'
init-shell: bash
generate-run-shell: false
- run: echo "filename=stenv-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ needs.date.outputs.date }}.yaml" >> $GITHUB_OUTPUT
id: output
- run: |
micromamba env export --no-build | grep -v "name:" | grep -v "prefix:" > ${{ steps.output.outputs.filename }}
pip freeze > pip_requirements.txt
python tools/mamba_export_pip.py ${{ steps.output.outputs.filename }} pip_requirements.txt > mamba_packages.yml
mv mamba_packages.yml ${{ steps.output.outputs.filename }}
cat ${{ steps.output.outputs.filename }}
- run: pip install pytest
- run: pytest tests/test_import.py
Expand Down
34 changes: 0 additions & 34 deletions tools/mamba_export_pip.py

This file was deleted.

0 comments on commit af07939

Please sign in to comment.