Skip to content

build: justfile for the build process #224

build: justfile for the build process

build: justfile for the build process #224

Workflow file for this run

# NOTE: This file is auto generated by OpenAPI Generator.
# URL: https://openapi-generator.tech
#
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Test
on:
pull_request:
merge_group:
push:
branches:
- main
jobs:
python:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
defaults:
run:
working-directory: python
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f test-requirements.txt ]; then pip install -r test-requirements.txt; fi
- name: Test with pytest
run: |
pytest
typescript:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.19.x, 22.12.x, 24.0.x]
defaults:
run:
working-directory: typescript
steps:
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
idempotency:
name: Idempotency of Code Generation
runs-on: ubuntu-24.04
container: quay.io/geoengine/devcontainer:latest
permissions:
contents: read
defaults:
run:
working-directory: python
steps:
- uses: actions/checkout@v6
- uses: extractions/setup-just@v3
- name: Install Java (OpenAPI Generator requires Java to run)
run: |
# deleted in devcontainer image, but required by java installer
mkdir -p /usr/share/man/man1
apt-get update
apt-get install -y openjdk-21-jre-headless
- name: Lint OpenAPI specification
run: just lint-openapi-spec
- name: Generate API clients
run: just build
- name: Check for changes in git repo
run: just check-no-changes-in-git-repo