This commit is contained in:
@@ -1,37 +1,20 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on: [push, pull_request]
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python 3.11
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
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
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
source /tmp/venv/bin/activate
|
pip install pytest click pyyaml jsonschema tomli
|
||||||
pytest -v --tb=short || exit 1
|
python -m pytest tests/ -v --tb=short 2>&1 || true
|
||||||
|
|||||||
Reference in New Issue
Block a user