tests: install dependencies from poetry.lock instead of duplicating in tox.ini #870
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: lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
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 dependencies | |
run: pip install poetry tox | |
- name: Check Poetry lock file | |
run: make poetry-lock-check | |
- name: Code style check | |
run: | | |
tox -e black-check,ruff-check,vulture,darglint | |
- name: Static type check | |
run: tox -e mypy | |
- name: Check copyright | |
run: tox -e check-copyright | |
- name: Misc checks | |
run: | | |
tox -e bandit |