Skip to content

Commit e61dba5

Browse files
authored
Merge pull request #24 from karellen/improve_testing
Improve tests
2 parents df9bd5d + c692438 commit e61dba5

File tree

3 files changed

+45
-4
lines changed

3 files changed

+45
-4
lines changed

.github/workflows/build.yml

+39-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,44 @@ on:
77
branches:
88
- master
99
jobs:
10+
build-smoke-test:
11+
runs-on: ${{ matrix.os }}
12+
continue-on-error: false
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os:
17+
- ubuntu-latest
18+
python-version:
19+
- '3.12'
20+
pip-version:
21+
- '24.2'
22+
setuptools-version:
23+
- '72.1'
24+
- '71.1'
25+
- '70.3'
26+
- '69.5'
27+
wheel-version:
28+
- '0.44'
29+
- '0.42.0'
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
steps:
33+
- uses: actions/checkout@v4
34+
- shell: bash
35+
run: |
36+
echo "PYB_EXTRA_ARGS=--no-venvs" >> $GITHUB_ENV
37+
echo "SETUPTOOLS_VER=~=${{matrix.setuptools-version}}" >> $GITHUB_ENV
38+
echo "PIP_VER=~=${{matrix.pip-version}}" >> $GITHUB_ENV
39+
echo "WHEEL_VER=~=${{matrix.wheel-version}}" >>$GITHUB_ENV
40+
- uses: pybuilder/build@master
41+
with:
42+
checkout: false
43+
with-venv: false
44+
python-version: ${{ matrix.python-version }}
45+
pyb-extra-args: ${{ env.PYB_EXTRA_ARGS }}
1046
build-primary:
47+
needs: build-smoke-test
1148
runs-on: ${{ matrix.os }}
1249
continue-on-error: false
1350
strategy:
@@ -73,7 +110,7 @@ jobs:
73110
python-version: ${{ matrix.python-version }}
74111
pyb-extra-args: ${{ env.PYB_EXTRA_ARGS }}
75112
build-secondary:
76-
needs: 'build-primary'
113+
needs: build-primary
77114
runs-on: ${{ matrix.os }}
78115
continue-on-error: false
79116
strategy:
@@ -120,7 +157,7 @@ jobs:
120157
python-version: ${{ matrix.python-version }}
121158
pyb-extra-args: ${{ env.PYB_EXTRA_ARGS }}
122159
build-experimental:
123-
needs: 'build-primary'
160+
needs: build-primary
124161
runs-on: ${{ matrix.os }}
125162
continue-on-error: true
126163
strategy:

.idea/vcs.xml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
use_plugin("filter_resources")
3131

3232
name = "wheel_axle"
33-
version = "0.0.8"
33+
version = "0.0.9.dev"
3434

3535
summary = "Axle is Python wheel enhancement library"
3636
authors = [Author("Karellen, Inc.", "supervisor@karellen.co")]
@@ -52,6 +52,8 @@
5252
def init_ci_dependencies(project):
5353
project.build_depends_on("setuptools", environ["SETUPTOOLS_VER"])
5454
project.build_depends_on("pip", environ["PIP_VER"])
55+
if "WHEEL_VER" in environ:
56+
project.build_depends_on("wheel", environ["WHEEL_VER"])
5557
default_task.append("install_ci_dependencies")
5658

5759

@@ -64,7 +66,8 @@ def install_ci_dependencies(project):
6466

6567
@init
6668
def set_properties(project):
67-
project.depends_on("wheel", ">=0.37.0")
69+
if "WHEEL_VER" not in environ:
70+
project.depends_on("wheel", ">=0.37.0")
6871
project.depends_on("wheel-axle-runtime", "<1.0")
6972

7073
project.set_property("coverage_break_build", False)

0 commit comments

Comments
 (0)