Skip to content

Update registry and generated artifacts (pre-sulo) #100

Update registry and generated artifacts (pre-sulo)

Update registry and generated artifacts (pre-sulo) #100

Workflow file for this run

name: Build and test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install dependencies
run: uv sync --dev --locked
- name: Check code quality with flake8
run: uv run tox -e flake8
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
#----------------------------------------------
# check-out repo and set-up python
#----------------------------------------------
- name: Check out repository
uses: actions/checkout@v4
#----------------------------------------------
# install uv
#----------------------------------------------
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: "uv.lock"
#----------------------------------------------
# install dependencies
#----------------------------------------------
- name: Install dependencies
run: uv sync --dev --locked
#----------------------------------------------
# run test suite
#----------------------------------------------
- name: Run tests
run: uv run python -m unittest discover