Skip to content

Rename the distribution to argorix-guardrails #2

Rename the distribution to argorix-guardrails

Rename the distribution to argorix-guardrails #2

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install package and test tooling
run: |
python -m pip install --upgrade pip
python -m pip install -e . pytest
- name: Run tests
run: python -m pytest tests -q
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install build tooling
run: python -m pip install --upgrade build twine
- name: Build argorix
run: python -m build --outdir dist .
- name: Build the governanceai compatibility shim
run: python -m build --outdir dist compat/governanceai
- name: Validate distributions
run: python -m twine check dist/*
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/