-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Test build of Python package on all Python versions for every PR
- Loading branch information
1 parent
9903006
commit 4ba0321
Showing
1 changed file
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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/[email protected] | ||
- 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/ |