Skip to content

Add test to keep metadata out of strict-mode gate accounting #31

Add test to keep metadata out of strict-mode gate accounting

Add test to keep metadata out of strict-mode gate accounting #31

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install package and test dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: Run linting
run: flake8 src/airc --max-line-length=120 --ignore=E501,W503
- name: Run tests
run: pytest tests/ -v --tb=short
- name: Validate packaged CLI entrypoint
run: |
release-checklist validate configs/medium-risk-example.yaml
release-checklist report configs/medium-risk-example.yaml --format json > /tmp/report.json
build:
needs: test
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Build package
run: |
python -m pip install --upgrade pip
python -m pip install build
python -m build
- name: Store build artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/