From 066a25378354d456523f0f4236c2d99f36c6c7ec Mon Sep 17 00:00:00 2001 From: Andrey Bondar Date: Sat, 4 Jan 2025 10:21:34 +0200 Subject: [PATCH] Fix CI (#2) * Fix CI * Fix CI * Fix CI * Fix CI --------- Co-authored-by: a_bondar --- .github/workflows/ci.yml | 21 ++++++++++++++++++--- .pre-commit-config.yaml | 4 ++-- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a70add2..77d53f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,9 +4,24 @@ on: branches: - main pull_request: - branches-ignore: - - main + branches: [main] jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: '3.11' + - name: Install and configure Poetry + run: | + pip install -U pip poetry + poetry config virtualenvs.create false + - name: Install requirements + run: make deps + - name: Run lint + run: make lint + test: runs-on: ubuntu-latest strategy: @@ -30,4 +45,4 @@ jobs: - name: Install requirements run: make deps - name: Run ci - run: make ci + run: make test diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 618932c..5c6fcab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: rev: v3.15.2 hooks: - id: pyupgrade - args: [ --py310-plus ] + args: [ --py311-plus ] - repo: https://github.com/pycqa/autoflake rev: v2.3.1 @@ -21,7 +21,7 @@ repos: rev: 24.4.2 hooks: - id: black - language_version: python3.10 + language_version: python3.11 - repo: https://github.com/pycqa/flake8 rev: 7.0.0