-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Use Poetry
--directory PATH
argument
Avoids the need for a working directory.
- Loading branch information
Showing
1 changed file
with
8 additions
and
7 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 |
---|---|---|
|
@@ -102,9 +102,9 @@ jobs: | |
|
||
- name: Get GDAL Python package version | ||
run: | ||
echo "GDAL_VERSION=$(poetry show gdal | tr -d ' ' | grep '^version:' | | ||
cut -d ':' -f 2)" >> $GITHUB_ENV | ||
working-directory: flooding/sentinel2_water_extraction | ||
echo "GDAL_VERSION=$(poetry --directory | ||
flooding/sentinel2_water_extraction show gdal | tr -d ' ' | grep | ||
'^version:' | cut -d ':' -f 2)" >> $GITHUB_ENV | ||
|
||
- name: Setup Conda | ||
uses: s-weigand/[email protected] | ||
|
@@ -118,14 +118,15 @@ jobs: | |
env.GDAL_VERSION }} poetry | ||
|
||
- name: Install Python packages | ||
run: poetry install --only=main --no-root | ||
working-directory: flooding/sentinel2_water_extraction | ||
run: | ||
poetry --directory flooding/sentinel2_water_extraction install | ||
--only=main --no-root | ||
|
||
- name: Run test | ||
run: | ||
poetry run jupyter nbconvert --debug --execute --inplace --to=notebook | ||
poetry --directory flooding/sentinel2_water_extraction run jupyter | ||
nbconvert --debug --execute --inplace --to=notebook | ||
sentinel2_water_extraction.ipynb | ||
working-directory: flooding/sentinel2_water_extraction | ||
|
||
finalise: | ||
if: always() | ||
|