Skip to content

Commit 652391e

Browse files
committed
Adjust GH action to use containers
1 parent dd4195e commit 652391e

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,17 @@ on: [push, pull_request]
33
jobs:
44
test:
55
name: Test
6+
runs-on: ubuntu-latest
7+
container:
8+
image: python:${{ matrix.python-version }}-trixie
69
strategy:
710
matrix:
8-
python-version: ["3.10.x", "3.11.x", "3.12.x", "3.13.x"]
9-
runs-on: ubuntu-latest
11+
python-version: ["3.10", "3.11", "3.12", "3.13"]
12+
1013
steps:
1114
- name: Checkout code
1215
uses: actions/checkout@v4
1316

14-
- name: Install Python
15-
uses: actions/setup-python@v5
16-
with:
17-
python-version: ${{ matrix.python-version }}
18-
1917
- name: Install Poetry
2018
uses: snok/install-poetry@v1
2119
with:
@@ -47,15 +45,12 @@ jobs:
4745
needs: [test]
4846
if: startsWith(github.ref, 'refs/tags/')
4947
runs-on: ubuntu-latest
48+
container:
49+
image: python:3.10-trixie
5050
steps:
5151
- name: Checkout code
5252
uses: actions/checkout@v4
5353

54-
- name: Install Python
55-
uses: actions/setup-python@v5
56-
with:
57-
python-version: "3.10.x"
58-
5954
- name: Publish release
6055
run: |
6156
python -m pip install -U pip poetry

0 commit comments

Comments
 (0)