Skip to content

Commit

Permalink
[#161] Update docker-build.yml to run tests with and without xgboost
Browse files Browse the repository at this point in the history
I've also updated pytest to be more verbose for clarity.
  • Loading branch information
riley-harper authored Nov 15, 2024
1 parent 5c6fdc9 commit a259811
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ jobs:
fail-fast: false
matrix:
python_version: ["3.10", "3.11", "3.12"]
hlink_extras: ["dev", "dev,xgboost"]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag $HLINK_TAG-${{ matrix.python_version}} --build-arg PYTHON_VERSION=${{ matrix.python_version }}
run: docker build . --file Dockerfile --tag $HLINK_TAG-${{ matrix.python_version}} --build-arg PYTHON_VERSION=${{ matrix.python_version }} --build-arg HLINK_EXTRAS=${{ matrix.hlink_extras }}

- name: Check dependency versions
run: |
Expand All @@ -32,7 +33,7 @@ jobs:
run: docker run $HLINK_TAG-${{ matrix.python_version}} flake8 --count .

- name: Test
run: docker run $HLINK_TAG-${{ matrix.python_version}} pytest
run: docker run $HLINK_TAG-${{ matrix.python_version}} pytest -v

- name: Build sdist and wheel
run: docker run $HLINK_TAG-${{ matrix.python_version}} python -m build

0 comments on commit a259811

Please sign in to comment.