add custom loss, optim, metrics for model_sweep #1057
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: PyPI Release | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ["v?[0-9]+.[0-9]+.[0-9]+"] | |
| pull_request: | |
| branches: [main] | |
| release: | |
| types: [published] | |
| jobs: | |
| # based on https://github.com/pypa/gh-action-pypi-publish | |
| release-pkg: | |
| runs-on: ubuntu-20.04 | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 🐍 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.8 | |
| - name: Create package 📦 | |
| run: | | |
| pip install "twine==5.1.1" setuptools wheel | |
| python setup.py sdist bdist_wheel | |
| ls -lh dist/ | |
| twine check dist/* | |
| - name: Upload to release | |
| if: github.event_name == 'release' | |
| uses: AButler/[email protected] | |
| with: | |
| files: "dist/*" | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Publish distribution 📦 to PyPI | |
| if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' | |
| uses: pypa/[email protected] | |
| with: | |
| user: __token__ | |
| password: ${{ secrets.pypi_password }} |