Skip to content

Commit 41151f2

Browse files
committed
upd: workflow
1 parent 3c36016 commit 41151f2

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/docker_auto.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
push:
66
branches:
77
- 4.1.0
8-
- 4.0.0
98
jobs:
109
tests:
1110
uses: ./.github/workflows/test.yml
@@ -16,8 +15,8 @@ jobs:
1615
env:
1716
DOCKER_PLATFORMS: linux/amd64,linux/arm64
1817
DOCKER_IMAGE: ghtardo/docker-privoxy-https
19-
LASTEST_VERSION: "4.1.0"
20-
PRIVOXY_VERSION: "4.1.0"
18+
LASTEST_VERSION: "${{ github.event.repository.default_branch }}"
19+
PRIVOXY_VERSION: "${{ github.ref_name }}"
2120
steps:
2221
- name: Set up QEMU
2322
uses: docker/setup-qemu-action@v3

.github/workflows/test.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Test
22

33
on:
44
pull_request:
5-
branches: [4.1.0, 4.0.0]
5+
branches: [4.1.0]
66
workflow_call:
77

88
jobs:
@@ -38,17 +38,13 @@ jobs:
3838
- uses: pre-commit/action@v3.0.1
3939

4040
privoxy:
41-
strategy:
42-
matrix:
43-
privoxy_version: [4.1.0, 4.0.0]
44-
python-version: [3.13]
45-
fail-fast: false
4641
runs-on: ubuntu-latest
4742
needs: pre-commit
4843
env:
4944
DEBIAN_FRONTEND: noninteractive
5045
PYTHONDONTWRITEBYTECODE: 1
5146
PYTHONUNBUFFERED: 1
47+
PYTHON_VERSION: "3.13"
5248

5349
steps:
5450
- uses: actions/cache@v4
@@ -69,7 +65,7 @@ jobs:
6965
- name: Set up Python
7066
uses: actions/setup-python@v6
7167
with:
72-
python-version: ${{ matrix.python-version }}
68+
python-version: ${{ env.PYTHON_VERSION }}
7369

7470
- name: Install poetry
7571
uses: abatilo/actions-poetry@v3
@@ -82,4 +78,4 @@ jobs:
8278
poetry install
8379
8480
- name: Run pytest
85-
run: poetry run pytest --privoxy-version ${{ matrix.privoxy_version }} --no-cache -v
81+
run: poetry run pytest --privoxy-version ${{ github.ref_name }} --no-cache -v

0 commit comments

Comments
 (0)