Skip to content

github workflow fixed #22

github workflow fixed

github workflow fixed #22

Workflow file for this run

on: ["push", "pull_request"]
name: Github Workflow for tests & linting
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
linting:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: packetcoders/action-setup-cache-python-poetry@main
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install Dependencies
run: |
poetry install --with lint
- name: Run Black
run: poetry run black --check .
- name: Run isort
run: poetry run isort --check-only .
- name: Run flake8
run: poetry run flake8 .
- name: Run mdformat
run: poetry run mdformat . --check
type-check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: packetcoders/action-setup-cache-python-poetry@main
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install Dependencies
run: |
poetry install --with lint
- name: Run MyPy
run: poetry run mypy .
functional:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.9", "3.10"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: packetcoders/action-setup-cache-python-poetry@main
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install Dependencies
run: |
poetry install --with dev
- name: Run Tests
run: poetry run pytest
fuzzing:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Poetry
uses: packetcoders/action-setup-cache-python-poetry@main
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install Dependencies
run: |
poetry install --with dev
- name: Run Tests
run: poetry run pytest