doc: update nixpkgs reference #87
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: main | |
on: | |
push: | |
branches: [$default-branch] | |
pull_request: {} | |
jobs: | |
main: | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
runs-on: ubuntu-latest | |
env: | |
POETRY_VIRTUALENVS_IN_PROJECT: true | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: google/osv-scanner/actions/scanner@main | |
with: | |
to-scan: poetry.lock | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install poetry | |
run: pip install poetry==1.8.3 | |
- name: cache venv | |
uses: actions/cache@v3 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} | |
- run: poetry install | |
- name: static analysis | |
run: | | |
poetry run -- pre-commit run --all-files | |
poetry run mypy src tests | |
- name: run tests | |
run: | | |
poetry run pytest | |
poetry run autotrash --help |