Skip to content

A workflow for our Python application #10

A workflow for our Python application

A workflow for our Python application #10

Workflow file for this run

name: Farr CI
on:
- push
- pull_request
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11"]
env:
FARRPATH: ${{ github.workspace }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
pip install poetry
- name: Install dependencies
run: |
poetry install
- name: Format code with Black
run: |
poetry run black --check .
- name: Check types with Mypy
run: |
poetry run mypy .
- name: Lint with Ruff
run: |
poetry run ruff check
- name: Test with Pytest
run: |
poetry run pytest
- name: Verify CLI functionality
run: |
poetry run farr -h