A workflow for our Python application #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |