Skip to content

Commit

Permalink
just use __version__
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Oct 14, 2024
1 parent e930d84 commit b0ac819
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,11 @@ jobs:
conda
init-shell: none
generate-run-shell: true
- id: version
name: retrieve package version with dunamai
run: |
micromamba install -y dunamai
echo version=$(dunamai from any --strict --pattern "default-unprefixed" --style semver) >> $GITHUB_OUTPUT
micromamba remove -y dunamai
- run: pip install .
- run: pip list
- id: version
name: retrieve package version
run: echo version=$(python -c "import jwql; print(jwql.__version__)") >> $GITHUB_OUTPUT
- id: filename
run: echo "filename=jwql_${{ steps.version.outputs.version }}_conda_${{ runner.os }}_${{ runner.arch }}_py${{ matrix.python-version }}.yml" >> $GITHUB_OUTPUT
- run: conda env export --no-build | grep -v "name:" | grep -v "prefix:" > ${{ steps.filename.outputs.filename }}
Expand Down

0 comments on commit b0ac819

Please sign in to comment.