deps: remove twine #1001
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: lint | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| # workflow_dispatch allows a user to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| run: | |
| continue-on-error: True | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: [3.9] | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@master | |
| - uses: actions/setup-python@master | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Poetry | |
| # We deduce the Poetry version from the lockfile. Please note that we have | |
| # to prepend "python" because PowerShell is not able to execute directly a | |
| # python script with a shebang. | |
| # In fact, this workflow is never run on Windows, but let's prioritize | |
| # consistency with the test.yml workflow. | |
| run: pip install poetry==$(python scripts/estimate_poetry_version.py) | |
| - name: Install tox | |
| # We deduce the tox version from the lockfile. Please note that we have | |
| # to prepend "python" because PowerShell is not able to execute directly a | |
| # python script with a shebang. | |
| # In fact, this workflow is never run on Windows, but let's prioritize | |
| # consistency with the test.yml workflow. | |
| run: pip install tox==$(poetry export --only=dev --without-hashes | python scripts/estimate_tox_version.py) | |
| - name: Check Poetry lock file | |
| run: make poetry-lock-check | |
| - name: Code style check | |
| run: | | |
| tox -e format-check,ruff-check,vulture,darglint | |
| - name: Static type check | |
| run: tox -e mypy | |
| - name: Check copyright | |
| run: tox -e check-copyright | |
| - name: Check that mypy.cfg and .ruff.toml target the same python version | |
| run: tox -e check-uniform-python-version | |
| - name: Misc checks | |
| run: | | |
| tox -e bandit |