Skip to content

fix(workflow): improve workflow file loading and error handling #22

fix(workflow): improve workflow file loading and error handling

fix(workflow): improve workflow file loading and error handling #22

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run linters
run: |
flake8 src/pygubuai --max-line-length=120 --extend-ignore=E203,W503
black --check src/pygubuai
- name: Run type checking
run: |
mypy src/pygubuai --ignore-missing-imports
- name: Run tests with coverage
run: |
pytest --cov=src/pygubuai --cov-report=term-missing --cov-report=xml
- name: Upload coverage to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: false
- name: Test CLI installation
run: |
pygubu-create --version
pygubu-create --help