Skip to content

Commit

Permalink
[CI] Test build of Python package on all Python versions for every PR (
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvervloesem committed Dec 23, 2023
1 parent 9903006 commit 4c44587
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/check.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: check
name: Test build

on:
push:
branches:
- development
pull_request:

jobs:
pre-commit:
test:
strategy:
fail-fast: false
matrix:
Expand All @@ -21,9 +18,22 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with: {fetch-depth: 0} # deep clone for setuptools-scm
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Run pre-commit
uses: pre-commit/action@v3.0.0
- name: Install requirements
run: |
pip3 install --upgrade pip
pip3 install setuptools setuptools_scm cmake wheel scikit-build ninja
- name: Build package
run: |
python3 setup.py sdist
- uses: actions/upload-artifact@v4
if: ${{ matrix.python == 3.12 }}
with:
name: python-package
path: dist/

0 comments on commit 4c44587

Please sign in to comment.