Skip to content

Commit

Permalink
Update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
devsjc committed Sep 26, 2023
1 parent 6a0425c commit 9c4cc2a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ concurrency:
jobs:
# Define a dependencies job that runs on all branches and PRs
# * Installs dependencies and caches them
build-venv:
build-venv:
runs-on: ubuntu-latest
container: quay.io/condaforge/miniforge3:latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -38,16 +40,17 @@ jobs:
# Should mirror the build-venv stage in the Containerfile
- name: Build venv
run: |
sudo apt -qq update && sudo apt -qq install -y build-essential libgeos-dev
python -m venv ./venv
./venv/bin/pip install --upgrade -q pip wheel setuptools
apt -qq update && apt -qq install -y build-essential
conda create -p ./venv python=3.10
./venv/bin/python -m pip install --upgrade -q pip wheel setuptools
if: steps.restore-cache.outputs.cache-hit != 'true'

# Should mirror the build-reqs stage in the Containerfile
# * Except this installs the dev dependencies and binaries as well
- name: Install all dependencies
run: |
./venv/bin/pip install -q --no-binary=dags .[dev]
conda install -p ./venv -q -y eccodes zarr
./venv/bin/python -m pip install -q .[dev]
if: steps.restore-cache.outputs.cache-hit != 'true'

# Cache the virtualenv for future runs
Expand All @@ -56,8 +59,8 @@ jobs:
with:
path: ./venv
key: ${{ steps.restore-cache.outputs.cache-primary-key }}
if: steps.restore-cache.outputs.cache-hit != 'true'

if: steps.restore-cache.outputs.cache-hit != 'true
'
# Define a unittest job that runs on all branches and PRs
test-unit:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies = [
"dagster-docker == 0.20.11",
"huggingface-hub == 0.16.4",
"numpy >= 1.23.0",
"nwp-consumer >= 0.1.17",
"nwp-consumer == 0.1.17",
"ocf-blosc2 == 0.0.3",
"pathlib == 1.0.1",
"requests >= 2.28.0",
Expand Down

0 comments on commit 9c4cc2a

Please sign in to comment.