Skip to content

Commit

Permalink
fix publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkEilander committed Jan 3, 2024
1 parent 5c15f68 commit 78b6222
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,27 +60,31 @@ jobs:
ls -ltrh
ls -ltrh dist
- name: Setup environment
uses: conda-incubator/setup-miniconda@v2
- uses: actions/setup-python@v5
id: pip
with:
python-version: "3.9"
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
environment-file: envs/hydromt-sfincs-min.yml
activate-environment: hydromt-sfincs-min

- name: Conda info
run: |
conda info
conda list
# caching, see https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#caching-packages
cache: 'pip'
cache-dependency-path: pyproject.toml
python-version: '3.11'

- name: upgrade pip
run: pip install --upgrade pip

- name: Verify the built dist/wheel is valid
run: |
python -m pip install dist/hydromt_sfincs*.whl
python -c 'from hydromt_sfincs import __version__ as v; print(v)'
echo "$(hydromt --models)"
- name: pip list
run: pip list

# run test
- name: Test
run: |
python -m pytest --verbose
upload-to-test-pypi:
needs: test-built-dist
if: github.event_name == 'push'
Expand Down

0 comments on commit 78b6222

Please sign in to comment.