From 3e67f69799c54d1ad074ad0dca8e62836658696b Mon Sep 17 00:00:00 2001 From: Alex Severin Date: Mon, 16 Dec 2024 15:48:55 +0300 Subject: [PATCH 1/3] edit ci --- .github/workflows/actionlint.yml | 15 --------------- .github/workflows/ci.yml | 11 +++++++++++ pyproject.toml | 1 + 3 files changed, 12 insertions(+), 15 deletions(-) delete mode 100644 .github/workflows/actionlint.yml diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml deleted file mode 100644 index 0f0c455..0000000 --- a/.github/workflows/actionlint.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Lint GitHub Actions workflows -on: [push, pull_request] - -jobs: - actionlint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Download actionlint - id: get_actionlint - run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) - shell: bash - - name: Check workflow files - run: ${{ steps.get_actionlint.outputs.executable }} -color - shell: bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c3a0d3..5252776 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,17 @@ concurrency: cancel-in-progress: true jobs: + actionlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Download actionlint + id: get_actionlint + run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) + shell: bash + - name: Check workflow files + run: ${{ steps.get_actionlint.outputs.executable }} -color + shell: bash python: runs-on: ubuntu-latest name: python diff --git a/pyproject.toml b/pyproject.toml index e17ef9a..2eb9949 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,6 +9,7 @@ requires-python = ">=3.10" dependencies = [ "numpy>=2.2.0", "onnxruntime>=1.20.1", + "opencv-python>=4.10.0.84", "pillow>=11.0.0", ] From cf68a33b0cd4293da92ba78813d21ff5415f20b2 Mon Sep 17 00:00:00 2001 From: Alex Severin Date: Mon, 16 Dec 2024 15:52:48 +0300 Subject: [PATCH 2/3] uv sync --locked --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5252776..67edff5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: with: python-version-file: ".python-version" - name: Install the project - run: uv sync --all-extras --dev + run: uv sync --all-extras --locked - name: pytest run: uv run pytest - name: mypy From 93d94cd51a680ae5eb7bc23e41e328842312586f Mon Sep 17 00:00:00 2001 From: Alex Severin Date: Mon, 16 Dec 2024 15:53:55 +0300 Subject: [PATCH 3/3] lock deps --- pyproject.toml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2eb9949..ea8b6ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,12 +6,7 @@ readme = "README.md" license = { text = "Apache-2.0" } authors = [{ name = "cospectrum", email = "severinalexeyv@gmail.com" }] requires-python = ">=3.10" -dependencies = [ - "numpy>=2.2.0", - "onnxruntime>=1.20.1", - "opencv-python>=4.10.0.84", - "pillow>=11.0.0", -] +dependencies = ["numpy>=2.2.0", "onnxruntime>=1.20.1", "pillow>=11.0.0"] [project.urls] Repository = "https://github.com/cospectrum/microwink"