Skip to content

Internal CI

Internal CI #105

Workflow file for this run

name: Internal CI
on:
push:
branches:
- develop
tags-ignore:
- '**'
paths-ignore:
- "README.md"
- "LICENCE"
- ".gitignore"
pull_request:
branches:
- develop
workflow_call:
workflow_dispatch:
inputs:
branch:
description: "Branch to deploy from"
required: true
default: "main"
defaults:
run:
shell: bash -l {0}
jobs:
unit-tests:
name: unit-tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- name: Get current date
id: date
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
- name: Install package
run: |
python -m pip install -e ".[ci]"
- name: Run tests
run: |
make unit-tests COV_REPORT=xml
legacy-api-unit-tests:
name: legacy-api-unit-tests
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12', '3.13']
steps:
- uses: actions/checkout@v4
- name: Get current date
id: date
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
- name: Install package
run: |
python -m pip install -e ".[ci]"
- name: Run legacy API tests
run: |
make legacy-api-unit-tests COV_REPORT=xml
type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get current date
id: date
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
- name: Install package
run: |
python -m pip install -e ".[ci]"
- name: Run code quality checks
run: |
make type-check
docs-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Get current date
id: date
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
- name: Install package
run: |
python -m pip install -e ".[docs]"
- name: Register Jupyter kernel
run: |
jupyter kernelspec uninstall -f python3 || true
python -m ipykernel install --user --name=python3 --display-name="Python 3"
- name: Build documentation
run: |
make docs-build