install only pre-commit for lint job #116
Workflow file for this run
This file contains 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: ci | |
on: push | |
jobs: | |
# test: | |
# runs-on: [self-hosted, gpu] | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - name: test gpu is available | |
# run: nvidia-smi | |
# - name: build image | |
# run: make build | |
# - name: test-no-docker | |
# run: make test-no-docker | |
# - name: test | |
# run: make test | |
# - name: test-no-gpu | |
# run: make test-no-gpu | |
publish-to-pypi-and-github-release: | |
if: "startsWith(github.ref, 'refs/tags/')" | |
runs-on: ubuntu-latest | |
# needs: test | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install pypa/build | |
run: python -m pip install --upgrade setuptools build twine | |
- name: Build a source tarball and wheel | |
run: python -m build . | |
- name: Publish package to PyPI | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} | |
run: python -m twine upload dist/* | |
# doesn't work in private repos | |
# - name: Github Release | |
# uses: softprops/action-gh-release@v1 |