Files
schema2mock/.gitea/workflows/ci.yml
7000pctAUTO 7d6a5734c8
Some checks failed
CI / test (push) Failing after 11s
CI / build (push) Has been skipped
Re-trigger CI with single-line commands
2026-03-22 23:02:21 +00:00

47 lines
1.0 KiB
YAML

name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: python -m pip install --upgrade pip && python -m pip install -e . && python -m pip install pytest
- name: Run tests
run: python -m pytest tests/ -v
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install build dependencies
run: python -m pip install --upgrade pip && python -m pip install build
- name: Build package
run: python -m build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/