Skip to content

Commit 27f8dd6

Browse files
committed
Remove pytest from CI.yml
addnab/docker-run-action is using old Docker version, which causes the following error: > docker: Error response from daemon: client version 1.41 is too old. Minimum supported API version is 1.44, please upgrade your client to a newer version.
1 parent 839ecbd commit 27f8dd6

File tree

1 file changed

+1
-73
lines changed

1 file changed

+1
-73
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is autogenerated by maturin v1.12.0
22
# To update, run
33
#
4-
# maturin generate-ci --pytest github
4+
# maturin generate-ci github
55
#
66
name: CI
77

@@ -53,31 +53,6 @@ jobs:
5353
with:
5454
name: wheels-linux-${{ matrix.platform.target }}
5555
path: dist
56-
- name: pytest
57-
if: ${{ startsWith(matrix.platform.target, 'x86_64') }}
58-
shell: bash
59-
run: |
60-
set -e
61-
python3 -m venv .venv
62-
source .venv/bin/activate
63-
pip install urlpattern --find-links dist --force-reinstall
64-
pip install pytest
65-
pytest
66-
- name: pytest
67-
if: ${{ !startsWith(matrix.platform.target, 'x86') && matrix.platform.target != 'ppc64' }}
68-
uses: uraimo/run-on-arch-action@v2
69-
with:
70-
arch: ${{ matrix.platform.target }}
71-
distro: ubuntu22.04
72-
githubToken: ${{ github.token }}
73-
install: |
74-
apt-get update
75-
apt-get install -y --no-install-recommends python3 python3-pip
76-
pip3 install -U pip pytest
77-
run: |
78-
set -e
79-
pip3 install urlpattern --find-links dist --force-reinstall
80-
pytest
8156

8257
musllinux:
8358
runs-on: ${{ matrix.platform.runner }}
@@ -109,36 +84,6 @@ jobs:
10984
with:
11085
name: wheels-musllinux-${{ matrix.platform.target }}
11186
path: dist
112-
- name: pytest
113-
if: ${{ startsWith(matrix.platform.target, 'x86_64') }}
114-
uses: addnab/docker-run-action@v3
115-
with:
116-
image: alpine:latest
117-
options: -v ${{ github.workspace }}:/io -w /io
118-
run: |
119-
set -e
120-
apk add py3-pip py3-virtualenv
121-
python3 -m virtualenv .venv
122-
source .venv/bin/activate
123-
pip install urlpattern --no-index --find-links dist --force-reinstall
124-
pip install pytest
125-
pytest
126-
- name: pytest
127-
if: ${{ !startsWith(matrix.platform.target, 'x86') }}
128-
uses: uraimo/run-on-arch-action@v2
129-
with:
130-
arch: ${{ matrix.platform.target }}
131-
distro: alpine_latest
132-
githubToken: ${{ github.token }}
133-
install: |
134-
apk add py3-virtualenv
135-
run: |
136-
set -e
137-
python3 -m virtualenv .venv
138-
source .venv/bin/activate
139-
pip install pytest
140-
pip install urlpattern --find-links dist --force-reinstall
141-
pytest
14287

14388
windows:
14489
runs-on: ${{ matrix.platform.runner }}
@@ -171,15 +116,6 @@ jobs:
171116
with:
172117
name: wheels-windows-${{ matrix.platform.target }}
173118
path: dist
174-
- name: pytest
175-
shell: bash
176-
run: |
177-
set -e
178-
python3 -m venv .venv
179-
source .venv/Scripts/activate
180-
pip install urlpattern --find-links dist --force-reinstall
181-
pip install pytest
182-
pytest
183119

184120
macos:
185121
runs-on: ${{ matrix.platform.runner }}
@@ -206,14 +142,6 @@ jobs:
206142
with:
207143
name: wheels-macos-${{ matrix.platform.target }}
208144
path: dist
209-
- name: pytest
210-
run: |
211-
set -e
212-
python3 -m venv .venv
213-
source .venv/bin/activate
214-
pip install urlpattern --find-links dist --force-reinstall
215-
pip install pytest
216-
pytest
217145

218146
sdist:
219147
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)