-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
139 additions
and
130 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
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,15 +1,10 @@ | ||
name: Build Python wheel | ||
description: Build the Python wheel | ||
outputs: | ||
filename: | ||
description: The name of the built Python wheel. | ||
value: ${{ steps.get-filename.outputs.filename }} | ||
runs: | ||
using: "composite" | ||
steps: | ||
- run: uv build --wheel | ||
shell: bash | ||
|
||
- id: get-filename | ||
run: uv run python -c 'from pathlib import Path; print(f"""filename={next(Path("dist").glob("jdk4py-*.whl")).parts[1]}""")' >> "$GITHUB_OUTPUT" | ||
- run: uv run twine check dist/* | ||
shell: bash |
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: Test | ||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
test: | ||
name: Test on ${{ matrix.runner }} with Python ${{ matrix.python }} | ||
runs-on: ${{ matrix.runner }} | ||
strategy: | ||
matrix: | ||
runner: | ||
- macos-13 # x64 | ||
- macos-14 # arm64 | ||
- ubuntu-24.04 | ||
- ubuntu-24.04-arm64 # GitHub-hosted larger runner in the ActiveViam organization. | ||
- windows-2022 | ||
python: | ||
- "3.12" | ||
include: | ||
- runner: ubuntu-24.04 | ||
python: "3.11" | ||
- runner: ubuntu-24.04 | ||
python: "3.10" | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ./.github/actions/build-java-runtime | ||
|
||
- id: build-python-wheel | ||
uses: ./.github/actions/build-python-wheel | ||
|
||
# No need to test each platform and Python version. | ||
- if: ${{ matrix.runner == 'ubuntu-24.04' && matrix.python == '3.12' }} | ||
run: uv run ruff format --check . | ||
|
||
# No need to test each platform and Python version. | ||
- if: ${{ matrix.runner == 'ubuntu-24.04' && matrix.python == '3.12' }} | ||
run: uv run ruff check . | ||
|
||
# No need to test each platform and Python version. | ||
- if: ${{ matrix.runner == 'ubuntu-24.04' && matrix.python == '3.12' }} | ||
run: uv run mypy | ||
|
||
- run: uv run pytest | ||
|
||
# The Python wheels are not tied to a specific Python version. | ||
- if: ${{ matrix.python == '3.12' }} | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
if-no-files-found: error | ||
name: ${{ steps.build-python-wheel.outputs.filename }} | ||
path: dist/${{ steps.build-python-wheel.outputs.filename }} | ||
|
||
conda-package: | ||
name: Test Conda packaging on ${{ matrix.runner }} | ||
runs-on: ${{ matrix.runner }} | ||
strategy: | ||
matrix: | ||
runner: | ||
- macos-13 # x64 | ||
- macos-14 # arm64 | ||
- ubuntu-24.04 | ||
- ubuntu-24.04-arm64 # GitHub-hosted larger runner in the ActiveViam organization. | ||
- windows-2022 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ./.github/actions/build-java-runtime | ||
with: | ||
# No need to test each Python version. | ||
python-version: "3.12" | ||
|
||
- id: build-conda-packages | ||
uses: ./.github/actions/build-conda-packages | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
if-no-files-found: error | ||
name: jdk4py-${{ steps.build-conda-packages.outputs.platform }}-conda-packages | ||
path: dist/${{ steps.build-conda-packages.outputs.platform }}/jdk4py-*.tar.bz2 |
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,4 +1,4 @@ | ||
python: | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
#- "3.12" |