Skip to content

Added actions for linting and release #1

Added actions for linting and release

Added actions for linting and release #1

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Linting
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
ruff:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python_version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python_version }}
- name: Dependencies
run: |
sudo apt update
pip install --upgrade pip
pip install ruff
- name: Linting
run: |
ruff check .