Skip to content

Commit 09a333c

Browse files
committed
Fix workflow
1 parent 83e5fe9 commit 09a333c

File tree

3 files changed

+21
-22
lines changed

3 files changed

+21
-22
lines changed

.github/workflows/squash.yml

+12-15
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,22 @@ on:
99
- main
1010

1111
jobs:
12-
build-1:
12+
build-docker-24:
1313
runs-on: ubuntu-20.04
1414
strategy:
1515
fail-fast: false
1616
matrix:
1717
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424
- name: Setup
2525
run: |
2626
sudo apt-get update
27-
pip install -U pip
28-
pip install "tox<4.0.0"
27+
pip install "tox<4.0.0" setuptools
2928
- name: Info
3029
run: |
3130
docker version
@@ -35,29 +34,27 @@ jobs:
3534
PV=${{ matrix.python-version }}
3635
echo "Running tests for Python version $PV ( ${PV/./} )"
3736
make test-py"${PV/./}"
38-
build-2:
37+
build-docker-25:
3938
runs-on: ubuntu-20.04
4039
strategy:
4140
fail-fast: false
4241
matrix:
4342
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
4443
steps:
45-
- uses: actions/checkout@v3
44+
- uses: actions/checkout@v4
4645
- name: Set up Python ${{ matrix.python-version }}
47-
uses: actions/setup-python@v4
46+
uses: actions/setup-python@v5
4847
with:
4948
python-version: ${{ matrix.python-version }}
5049
- name: Setup
5150
run: |
5251
for pkg in containerd runc; do sudo apt-get remove $pkg; done
5352
sudo apt-get update
54-
sudo apt-get install ca-certificates curl
55-
sudo install -m 0755 -d /etc/apt/keyrings
56-
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
57-
sudo chmod a+r /etc/apt/keyrings/docker.asc
58-
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
59-
pip install -U pip
60-
pip install "tox<4.0.0"
53+
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
54+
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
55+
apt-cache policy docker-ce
56+
sudo apt-get install docker-ce docker-ce-cli containerd.io
57+
pip install "tox<4.0.0" setuptools
6158
- name: Info
6259
run: |
6360
docker version

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ test-py310: prepare
2121
test-py311: prepare
2222
tox -e py311 -- tests
2323

24+
test-py312: prepare
25+
tox -e py312 -- tests
26+
2427
test-unit: prepare
2528
tox -- tests/test_unit*
2629

tox.ini

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
[tox]
2-
envlist = py36,py37,py38,py39,py310,py311
2+
envlist = py36,py37,py38,py39,py310,py311,py312
33

44
[testenv]
5-
passenv=CI,HOME
6-
setenv=
7-
ENVNAME={envname}
8-
PIPENV_VERBOSITY=-1
9-
deps=
10-
pipenv
5+
passenv=
6+
CI
7+
HOME
8+
setenv=PIPENV_VERBOSITY=-1
9+
deps=pipenv
1110
commands=
1211
pipenv install --dev --ignore-pipfile --skip-lock
1312
pipenv run pytest -v --cov-report term --cov-report html --cov docker_squash --basetemp={envtmpdir} --junit-xml target/junit-{envname}.xml --junit-prefix {envname} {posargs}

0 commit comments

Comments
 (0)