Skip to content

Commit

Permalink
add(cicd): linting
Browse files Browse the repository at this point in the history
  • Loading branch information
arodindev committed Aug 4, 2024
1 parent 5ce8ddf commit 04b2b5c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: publish
name: CD
on:
push:
tags:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI
on:
push:

jobs:
ci:
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
poetry-version: ["1.8.2"]
os: [ubuntu-22.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dev dependencies (lint)
run: poetry install -v --no-interaction --no-root --only dev
- name: Run linting
run: poetry run isort src \
poetry run ruff check src --fix \
poetry run ruff format src

0 comments on commit 04b2b5c

Please sign in to comment.