-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added install workflow * update lock file, fix python versions * lock numpy to 1.26.4 * add status badge
- Loading branch information
1 parent
2fb1329
commit f26bd10
Showing
5 changed files
with
250 additions
and
140 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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Build and Install | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
build-install: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Check python3 == python${{ matrix.python-version }} | ||
run: | | ||
installed_python=$(python3 --version) | ||
echo "Installed Python: $installed_python" | ||
if [[ "$installed_python" != *"${{ matrix.python-version }}"* ]]; then | ||
echo "Python version mismatch. Expected: ${{ matrix.python-version }}, but got: $installed_python" | ||
exit 1 | ||
else | ||
echo "${{ matrix.python-version }}" | ||
fi | ||
- name: Install Poetry | ||
run: | | ||
curl -sSL https://install.python-poetry.org | python3 - | ||
- name: Install dependencies | ||
run: | | ||
python3 -m pip install setuptools | ||
poetry install --with dev | ||
- name: Package with Poetry | ||
run: | | ||
# clear out dist folder first | ||
rm -rf dist | ||
poetry build | ||
- name: Install Built Package | ||
run: | | ||
python3 -m pip install dist/*.whl | ||
- name: Test Installation | ||
run: | | ||
petprep_extract_tacs --version | ||
merge_tacs --help | ||
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
Oops, something went wrong.