Skip to content

Merge pull request #14 from uniclogs/packaging #2

Merge pull request #14 from uniclogs/packaging

Merge pull request #14 from uniclogs/packaging #2

Workflow file for this run

name: Tests and lints for Pass Commander
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# The recommended way to setup python in an action but since we depend on
# the system package python3-hamlib we have to use the system python.
# - name: Set up Python 3.10
# uses: actions/setup-python@v3
# with:
# python-version: "3.10"
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y python3.10 python3-hamlib
python -m pip install --upgrade pip
python -m pip install .[dev]
- name: Lint with Ruff
run: |
ruff check
- name: Format with Ruff
run: |
ruff format --check
- name: Typecheck with mypy
run: |
mypy --strict pass_commander
- name: Test with pytest
run: |
pytest