diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 63a91f4..8e647f5 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -18,7 +18,7 @@ jobs: with: path: | ~/.cache/pip - venv + .venv key: >- lint-${{ hashFiles( '.github/requirements.txt', @@ -31,9 +31,9 @@ jobs: run: | set -euxo pipefail # venv due to mypy through pre-commit, venv-run - python3 -m venv venv - venv/bin/python3 -m pip install -Ur .github/requirements.txt - - run: venv/bin/gitlint --commits "origin/$GITHUB_BASE_REF..HEAD" + python3 -m venv .venv + .venv/bin/python3 -m pip install -Ur .github/requirements.txt + - run: .venv/bin/gitlint --commits "origin/$GITHUB_BASE_REF..HEAD" if: github.event_name == 'pull_request' - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 diff --git a/.gitignore b/.gitignore index c7171ad..b1306ce 100644 --- a/.gitignore +++ b/.gitignore @@ -5,8 +5,8 @@ /.mise.local.toml /.nox/ /.python-version +/.venv/ /build/ /dist/ /service_account.json -/venv/ __pycache__/