Skip to content

ENC: Restore workflows #129

ENC: Restore workflows

ENC: Restore workflows #129

Workflow file for this run

# This workflow will perform unit tests
name: Unit Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
- maintenance/**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
ubuntu:
name: (${{ matrix.os }} - py-${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
container: ghcr.io/osgeo/gdal:ubuntu-small-latest
env:
DEBIAN_FRONTEND: noninteractive
strategy:
matrix:
os: ["ubuntu-22.04"]
python-version: ['3.9']
steps:
- uses: actions/checkout@v3
- name: Update
run: |
sudo apt-get update
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential make gcc gfortran
python3 -m pip install --upgrade pip
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Build and Install
run: |
make
- name: Run Tests
run: |
make test