Skip to content

Commit

Permalink
improv pip ci
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkEilander committed Oct 18, 2023
1 parent 8aaae96 commit 9c78420
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/tests_pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ jobs:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.11']
runs-on: ubuntu-latest
# concurrency:
# group: ${{ github.workflow }}-${{ matrix.python-version }}-${{ github.ref }}
Expand All @@ -40,13 +37,19 @@ jobs:
id: py310
with:
python-version: '3.10'
# cache: 'pip' # TODO caching
# true if cache-hit occurred on the primary key
# - run: echo '${{ steps.py310.outputs.cache-hit }}'
# caching, see https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#caching-packages
cache: 'pip'
cache-dependency-path: pyproject.toml

# true if cache-hit occurred on the primary key
- name: Cache hit
run: echo '${{ steps.py310.outputs.cache-hit }}'

# build environment with pip
- name: Generate env spec
run: pip install .[test,io,extra]
- name: Install hydromt
run: |
pip install --upgrade pip
pip install .[test,io,extra]
# run test
- name: Test
Expand Down

0 comments on commit 9c78420

Please sign in to comment.