Make only 1 thumbnail per level3 rootname #543
Workflow file for this run
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: build | |
| on: | |
| release: | |
| types: [ released ] | |
| pull_request: | |
| workflow_dispatch: | |
| defaults: | |
| run: | |
| shell: bash -leo pipefail {0} | |
| jobs: | |
| build: | |
| uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish_pure_python.yml@v1 | |
| with: | |
| upload_to_pypi: ${{ (github.event_name == 'release') && (github.event.action == 'released') }} | |
| secrets: | |
| pypi_token: ${{ secrets.PYPI_PASSWORD_STSCI_MAINTAINER }} | |
| freeze: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: | |
| [ "ubuntu-latest", "macos-latest" ] | |
| python-version: | |
| [ "3.12", "3.13", "3.14" ] | |
| fail-fast: false | |
| name: freeze versions (Python ${{ matrix.python-version }}, ${{ matrix.os }}) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: mamba-org/setup-micromamba@7f29b8b80078b1b601dfa018b0f7425c587c63bb # v2.0.6 | |
| with: | |
| environment-name: jwql-${{ runner.os }}-py${{ matrix.python-version }} | |
| environment-file: environment.yml | |
| create-args: >- | |
| python=${{ matrix.python-version }} | |
| init-shell: bash | |
| generate-run-shell: false | |
| post-cleanup: none | |
| - 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: micromamba env export --no-build | grep -v "name:" | grep -v "prefix:" > ${{ steps.filename.outputs.filename }} | |
| - run: cat ${{ steps.filename.outputs.filename }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ steps.filename.outputs.filename }} | |
| path: ${{ steps.filename.outputs.filename }} | |
| - if: (github.event_name == 'release' && github.event.action == 'released') | |
| uses: svenstaro/upload-release-action@v2 | |
| with: | |
| file: ${{ steps.filename.outputs.filename }} | |