Skip to content

Commit

Permalink
Running test using the latest geokube built image
Browse files Browse the repository at this point in the history
  • Loading branch information
gtramonte committed Sep 26, 2024
1 parent bd91fc0 commit 4a38df3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-push-docker-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
workflow_dispatch:

jobs:
build:
build-base:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
32 changes: 11 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,23 @@
name: Unit Tests

on:
pull_request:
types: [opened, reopened, edited, assigned, synchronize]
workflow_dispatch:
workflow_run:
workflows: [ 'build' ]
types: [ completed ]
branches:
- *

jobs:
build:
runs-on: ubuntu-latest
container:
image: ${{ vars.GEOKUBE_REGISTRY }}/geokube:latest
credentials:
username: nologin
password: ${{ secrets.SCALEWAY_PASSWORD }}
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v1
with:
python-version: 3.12

- name: Install WHEEL tool
run: pip install wheel setuptools==74.1.2

- name: Build WHEEL file
run: python setup.py bdist_wheel

- name: Installing missing libraries
run: sudo apt update && sudo apt install -y build-essential git gfortran python3-pip python3 libudunits2-dev

- name: Install Geokube
run: pip install dist/geokube-0.2.7-py3-none-any.whl
env:
UDUNITS2_XML_PATH: /usr/share/xml/udunits/udunits2.xml

- name: Run test
run: pytest tests

0 comments on commit 4a38df3

Please sign in to comment.