38 lines
854 B
YAML
38 lines
854 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python 3.11
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install system dependencies
|
|
run: |
|
|
apt-get update && apt-get install -y python3-pip python3-venv
|
|
|
|
- name: Create virtual environment
|
|
run: python3 -m venv /tmp/venv
|
|
shell: bash
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
source /tmp/venv/bin/activate
|
|
pip install --upgrade pip
|
|
pip install pytest click pyyaml jsonschema tomli
|
|
|
|
- name: Run tests
|
|
run: |
|
|
source /tmp/venv/bin/activate
|
|
pytest -v --tb=short || exit 1
|