Skip to content

Commit

Permalink
Merge pull request #24 from karellen/improve_testing
Browse files Browse the repository at this point in the history
Improve tests
  • Loading branch information
arcivanov authored Aug 10, 2024
2 parents df9bd5d + c692438 commit e61dba5
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 4 deletions.
41 changes: 39 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,44 @@ on:
branches:
- master
jobs:
build-smoke-test:
runs-on: ${{ matrix.os }}
continue-on-error: false
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
python-version:
- '3.12'
pip-version:
- '24.2'
setuptools-version:
- '72.1'
- '71.1'
- '70.3'
- '69.5'
wheel-version:
- '0.44'
- '0.42.0'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- shell: bash
run: |
echo "PYB_EXTRA_ARGS=--no-venvs" >> $GITHUB_ENV
echo "SETUPTOOLS_VER=~=${{matrix.setuptools-version}}" >> $GITHUB_ENV
echo "PIP_VER=~=${{matrix.pip-version}}" >> $GITHUB_ENV
echo "WHEEL_VER=~=${{matrix.wheel-version}}" >>$GITHUB_ENV
- uses: pybuilder/build@master
with:
checkout: false
with-venv: false
python-version: ${{ matrix.python-version }}
pyb-extra-args: ${{ env.PYB_EXTRA_ARGS }}
build-primary:
needs: build-smoke-test
runs-on: ${{ matrix.os }}
continue-on-error: false
strategy:
Expand Down Expand Up @@ -73,7 +110,7 @@ jobs:
python-version: ${{ matrix.python-version }}
pyb-extra-args: ${{ env.PYB_EXTRA_ARGS }}
build-secondary:
needs: 'build-primary'
needs: build-primary
runs-on: ${{ matrix.os }}
continue-on-error: false
strategy:
Expand Down Expand Up @@ -120,7 +157,7 @@ jobs:
python-version: ${{ matrix.python-version }}
pyb-extra-args: ${{ env.PYB_EXTRA_ARGS }}
build-experimental:
needs: 'build-primary'
needs: build-primary
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
Expand Down
1 change: 1 addition & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
use_plugin("filter_resources")

name = "wheel_axle"
version = "0.0.8"
version = "0.0.9.dev"

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


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

@init
def set_properties(project):
project.depends_on("wheel", ">=0.37.0")
if "WHEEL_VER" not in environ:
project.depends_on("wheel", ">=0.37.0")
project.depends_on("wheel-axle-runtime", "<1.0")

project.set_property("coverage_break_build", False)
Expand Down

0 comments on commit e61dba5

Please sign in to comment.