Skip to content

Commit 928ba7a

Browse files
committed
fix: github actions
1 parent d5bdb90 commit 928ba7a

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,33 @@ on:
1010
jobs:
1111
pre-commit:
1212
runs-on: ubuntu-latest
13+
env:
14+
DEBIAN_FRONTEND: noninteractive
15+
POETRY_NO_INTERACTION: 1
16+
POETRY_NO_DEV: 1
17+
PYTHONDONTWRITEBYTECODE: 1
18+
PYTHONUNBUFFERED: 1
19+
1320
steps:
1421
- uses: actions/checkout@v4
1522
- uses: actions/setup-python@v4
1623
with:
1724
python-version: "3.13"
25+
- name: Install poetry
26+
uses: abatilo/actions-poetry@v3
27+
with:
28+
poetry-version: latest
1829
- uses: actions/cache@v4
1930
with:
20-
path: ~/.cache/pre-commit
21-
key: ${{ runner.os }}-{{ hashFiles('.pre-commit-config.yaml') }}
31+
path: |
32+
~/.cache/pre-commit
33+
.venv
34+
.cache
35+
key: ${{ runner.os }}-{{ hashFiles('**/.pre-commit-config.yaml') }}
36+
- name: Install dependencies
37+
run: |
38+
poetry config virtualenvs.in-project true
39+
poetry install
2240
- uses: pre-commit/action@v3.0.1
2341

2442
privoxy:
@@ -29,6 +47,10 @@ jobs:
2947
fail-fast: false
3048
runs-on: ubuntu-latest
3149
needs: pre-commit
50+
env:
51+
DEBIAN_FRONTEND: noninteractive
52+
PYTHONDONTWRITEBYTECODE: 1
53+
PYTHONUNBUFFERED: 1
3254

3355
steps:
3456
- uses: actions/cache@v4

0 commit comments

Comments
 (0)