Two minor bug fixes predict tool #75
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: Release CD | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - '.github/workflows/**' | |
| jobs: | |
| pypi-publish: | |
| name: Publish release to PyPI | |
| environment: | |
| name: pypi | |
| url: https://pypi.org/project/ctlearn/ | |
| permissions: | |
| id-token: write | |
| contents: write | |
| deployments: write | |
| statuses: write | |
| actions: write | |
| checks: read | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04] | |
| pyv: ['3.12'] | |
| max-parallel: 5 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up micromamba (Python ${{ matrix.pyv }}) | |
| uses: mamba-org/setup-micromamba@v1 | |
| with: | |
| environment-name: ctlearn | |
| create-args: >- | |
| python=${{ matrix.pyv }} | |
| pip | |
| cache-environment: true | |
| - name: Build package | |
| shell: micromamba-shell {0} | |
| run: | | |
| python --version | |
| pip install -U build | |
| python -m build | |
| - name: Publish package distributions to PyPI | |
| if: github.event_name == 'release' | |
| uses: pypa/gh-action-pypi-publish@release/v1 |