Skip to content

Fix IndexError in h5_to_landcover when coordinates fall on tile boundaries #119

Fix IndexError in h5_to_landcover when coordinates fall on tile boundaries

Fix IndexError in h5_to_landcover when coordinates fall on tile boundaries #119

Workflow file for this run

name: Run tests
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
unit-tests:
runs-on: ubuntu-latest
env:
COMPOSE_FILE: docker-compose.yml
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
lfs: true
- name: Checkout LFS objects for test cases
run: git lfs checkout
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build docker images
run: |
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker compose build
- name: Run unit and integration tests
run: |
# Start containers
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker compose up -d
# Wait for container to be ready
sleep 5
# Run all tests in parallel
docker compose exec -T test pytest tests/ -vv -n auto
# Run specific test file in parallel
docker compose exec -T test pytest tests/test_main.py -vv -n auto
- name: Cleanup
run: docker compose down