Skip to content

(building/station) move AStation into agrf #225

(building/station) move AStation into agrf

(building/station) move AStation into agrf #225

Workflow file for this run

name: Unit tests
on:
# Runs on pushes targeting any branch
push:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "test"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Install system deps
run: sudo apt update && sudo apt install libjpeg-dev zlib1g-dev
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python 3.12.10
run: uv python install 3.12.10
- name: Create and activate virtual environment
run: |
uv venv --python 3.12.10
echo "VIRTUAL_ENV=$PWD/.venv" >> $GITHUB_ENV
echo "$PWD/.venv/bin" >> $GITHUB_PATH
- name: Install dependencies
run: uv pip install ".[test]"
- name: Test agrf with coverage
run: pytest