-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use virtual environement using 'trap deactivate EXIT' Merging requires that the ci git hub action passes all checks and also passes functional tests a.k.a registration-demo. The github action of releasing must only be executed when releasing as wheels in pypi are immutable. Otherwise we would have to bump release versions if the releases fail. Once code is merged it is releasable. Added support for 3.13 Added additional wheel attributes.
- Loading branch information
Showing
16 changed files
with
91 additions
and
89 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 |
---|---|---|
|
@@ -5,12 +5,13 @@ name: Build and test | |
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.11", "3.12" ] | ||
python-version: ["3.11", "3.12", "3.13" ] | ||
# reduced matrix for ci | ||
os: [ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -27,28 +28,28 @@ jobs: | |
shell: bash | ||
|
||
- name: Run integrity checks | ||
env: | ||
DATATRAILS_URL: ${{ vars.DATATRAILS_URL }} | ||
DATATRAILS_CLIENT_ID: ${{ vars.DATATRAILS_CLIENT_ID }} | ||
DATATRAILS_CLIENT_SECRET: ${{ secrets.DATATRAILS_CLIENT_SECRET }} | ||
|
||
run: | | ||
ruff check datatrails_scitt_samples unittests | ||
python3 -m black datatrails_scitt_samples unittests | ||
ruff check datatrails_scitt_samples tests | ||
python3 -m black datatrails_scitt_samples tests | ||
python3 -m pyright --stats datatrails_scitt_samples | ||
modified=$(git status -s | wc -l) | ||
if [ $modified -gt 0 ] | ||
then | ||
echo "there are $modified files that must be reformatted" | ||
echo "DISABLED guard due to mismatch with local environment" | ||
# exit 1 | ||
fi | ||
python3 -m unittest | ||
shell: bash | ||
- name: Run type-hint checks | ||
if: ${{ matrix.python-version != '3.12' }} | ||
|
||
- name: Simple tests | ||
env: | ||
DATATRAILS_URL: ${{ vars.DATATRAILS_URL }} | ||
DATATRAILS_CLIENT_ID: ${{ vars.DATATRAILS_CLIENT_ID }} | ||
DATATRAILS_CLIENT_SECRET: ${{ secrets.DATATRAILS_CLIENT_SECRET }} | ||
run: | | ||
python3 -m pyright --stats datatrails_scitt_samples | ||
python3 -m unittest | ||
shell: bash | ||
|
||
- uses: pypa/[email protected] | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
with: | ||
|
@@ -57,4 +58,23 @@ jobs: | |
GHSA-wj6h-64fc-37mp | ||
inputs: requirements.txt | ||
|
||
- name: Install Task | ||
uses: arduino/setup-task@v1 | ||
with: | ||
version: "3.x" | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create and install wheel | ||
run: | | ||
python3 -m build --wheel | ||
python3 -m pip install --force-reinstall dist/*.whl | ||
shell: bash | ||
|
||
- name: Test installed package (registration-demo) | ||
env: | ||
DATATRAILS_URL: ${{ vars.DATATRAILS_URL }} | ||
DATATRAILS_CLIENT_ID: ${{ vars.DATATRAILS_CLIENT_ID }} | ||
DATATRAILS_CLIENT_SECRET: ${{ secrets.DATATRAILS_CLIENT_SECRET }} | ||
run: | | ||
task registration-demo | ||
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 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
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
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.