Skip to content

Commit

Permalink
Fix lint action
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Nov 27, 2024
1 parent bfaa42e commit 6b13bf7
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 4,36 @@ on: [ push, pull_request ]

jobs:
ci:
- uses: actions/checkout@v4
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v4
- name: Install Python
uses: actions/setup-python@v4

- name: Install poetry
uses: abatilo/actions-poetry@v2
- name: Install poetry
uses: abatilo/actions-poetry@v2

- name: Setup a local virtual environment (if no poetry.toml file)
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- name: Setup a local virtual environment (if no poetry.toml file)
run: |
poetry config virtualenvs.create true --local
poetry config virtualenvs.in-project true --local
- uses: actions/cache@v3
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}
- uses: actions/cache@v3
name: Define a cache for the virtual environment based on the dependencies lock file
with:
path: ./.venv
key: venv-${{ hashFiles('poetry.lock') }}

- name: Install the project dependencies
run: poetry install
- name: Install the project dependencies
run: poetry install

- uses: astral-sh/ruff-action@v1
with:
args: "--ignore=E501"
- uses: astral-sh/ruff-action@v1
with:
args: "--ignore=E501"

- uses: astral-sh/ruff-action@v1
with:
args: "format --check"
- uses: astral-sh/ruff-action@v1
with:
args: "format --check"

- uses: isort/isort-action@v1
- uses: isort/isort-action@v1

0 comments on commit 6b13bf7

Please sign in to comment.