Skip to content

fix: github actions #40

fix: github actions

fix: github actions #40

Workflow file for this run

name: Test
on:
push:
branches: [4.0.0]
pull_request:
branches: [4.0.0]
workflow_call:
jobs:
pre-commit:
runs-on: ubuntu-latest
env:
DEBIAN_FRONTEND: noninteractive
POETRY_NO_INTERACTION: 1
POETRY_NO_DEV: 1
PYTHONDONTWRITEBYTECODE: 1
PYTHONUNBUFFERED: 1
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.13"
- name: Install poetry
uses: abatilo/actions-poetry@v3
with:
poetry-version: latest
- uses: actions/cache@v4
with:
path: |
~/.cache/pre-commit
.venv
.cache
key: ${{ runner.os }}-{{ hashFiles('**/.pre-commit-config.yaml') }}
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry install
- uses: pre-commit/action@v3.0.1
privoxy:
strategy:
matrix:
privoxy_version: [4.0.0]
python-version: [3.13]
fail-fast: false
runs-on: ubuntu-latest
needs: pre-commit
env:
DEBIAN_FRONTEND: noninteractive
PYTHONDONTWRITEBYTECODE: 1
PYTHONUNBUFFERED: 1
steps:
- uses: actions/cache@v4
with:
path: |
.venv
.cache
key: ${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Switch to current branch
run: git checkout ${{ env.BRANCH }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/actions-poetry@v3
with:
poetry-version: latest
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry install
- name: Run pytest
run: poetry run pytest --privoxy-version ${{ matrix.privoxy_version }} --no-cache -v