From f609f94f12fccb6e4d9ea21d9d7c3b3c8d2d5f18 Mon Sep 17 00:00:00 2001 From: Rishabh <53911515+Rishabh672003@users.noreply.github.com> Date: Mon, 1 Jul 2024 11:11:39 +0530 Subject: [PATCH] update: this should fix ci hopefully --- .github/workflows/python-app.yml | 10 +++++----- pdm.lock | 28 +++++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index a5640f3..26a7995 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -17,7 +17,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ["3.10","3.11", "3.12"] + python-version: ["3.10", "3.11", "3.12"] os: [ubuntu-latest, macOS-latest, windows-latest] steps: @@ -29,10 +29,10 @@ jobs: - name: Install dependencies run: | - pdm install ; pip install ruff pytest - - name: Run Tests - run: | - pdm run -v pytest + pdm install && pip install ruff pytest - name: Lint with ruff run: | ruff check . + - name: Run Tests + run: | + pytest . diff --git a/pdm.lock b/pdm.lock index cd42d2d..1fe552d 100644 --- a/pdm.lock +++ b/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "lint", "tests"] strategy = ["cross_platform", "inherit_metadata"] lock_version = "4.4.1" -content_hash = "sha256:e285b71f523631af7620de1aaae03e845bc1d812c8a1956924c697d7597951de" +content_hash = "sha256:df51b8cd0abb626be270b2771bbe16885289f13fa18f646c474ee659859ee08f" [[package]] name = "click" @@ -33,6 +33,18 @@ files = [ {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, ] +[[package]] +name = "exceptiongroup" +version = "1.2.1" +requires_python = ">=3.7" +summary = "Backport of PEP 654 (exception groups)" +groups = ["tests"] +marker = "python_version < \"3.11\"" +files = [ + {file = "exceptiongroup-1.2.1-py3-none-any.whl", hash = "sha256:5258b9ed329c5bbdd31a309f53cbfb0b155341807f6ff7606a1e801a891b29ad"}, + {file = "exceptiongroup-1.2.1.tar.gz", hash = "sha256:a4785e48b045528f5bfe627b6ad554ff32def154f42372786903b7abcfe1aa16"}, +] + [[package]] name = "importlib" version = "1.0.4" @@ -94,9 +106,11 @@ summary = "pytest: simple powerful testing with Python" groups = ["tests"] dependencies = [ "colorama; sys_platform == \"win32\"", + "exceptiongroup>=1.0.0rc8; python_version < \"3.11\"", "iniconfig", "packaging", "pluggy<2.0,>=1.5", + "tomli>=1; python_version < \"3.11\"", ] files = [ {file = "pytest-8.2.2-py3-none-any.whl", hash = "sha256:c434598117762e2bd304e526244f67bf66bbd7b5d6cf22138be51ff661980343"}, @@ -130,6 +144,18 @@ files = [ {file = "ruff-0.5.0.tar.gz", hash = "sha256:eb641b5873492cf9bd45bc9c5ae5320648218e04386a5f0c264ad6ccce8226a1"}, ] +[[package]] +name = "tomli" +version = "2.0.1" +requires_python = ">=3.7" +summary = "A lil' TOML parser" +groups = ["tests"] +marker = "python_version < \"3.11\"" +files = [ + {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, + {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, +] + [[package]] name = "xdg-base-dirs" version = "6.0.1"