chore(deps): update dependency ruff to ^0.1.8 (#125) #137
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: Main | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
release: | |
types: [created] | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
name: Lint code | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup vapoursynth | |
uses: deadnews/action-setup-vs@latest | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
cache: poetry | |
- name: Install deps | |
run: poetry install | |
- name: Lint code | |
run: poetry run poe lint | |
publish-pypi: | |
name: Release to PyPI | |
if: github.event_name == 'release' && github.event.action == 'created' | |
needs: [lint] | |
permissions: | |
id-token: write | |
environment: pypi | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
run: | | |
pipx install poetry | |
pipx inject poetry poetry-dynamic-versioning[plugin] | |
- uses: actions/setup-python@v4 | |
- name: Build package | |
run: poetry build | |
- name: Publish package to PyPI | |
uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e # v1.8.10 |