This commit is contained in:
@@ -7,25 +7,6 @@ on:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install ruff black mypy
|
||||
- name: Run ruff
|
||||
run: ruff check .
|
||||
- name: Run black
|
||||
run: black --check .
|
||||
- name: Run mypy
|
||||
run: mypy .
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -34,22 +15,11 @@ jobs:
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
cache: 'pip'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pytest click pyyaml jsonschema tomli
|
||||
pip install -e .
|
||||
- name: Run tests
|
||||
run: pytest -v
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- name: Install build
|
||||
run: pip install build
|
||||
- name: Build package
|
||||
run: python -m build
|
||||
run: pytest -v --tb=short
|
||||
|
||||
Reference in New Issue
Block a user