From 1ffb33d4140dc1c69a09b826dabb71fbf486f903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20H=C3=A6rvig?= <10219471+jakobhaervig@users.noreply.github.com> Date: Thu, 30 May 2024 13:04:22 +0200 Subject: [PATCH] Test: Loose up version req --- .github/workflows/pytest.yml | 25 +++++++++++++++---------- pyproject.toml | 24 ++++++++++++------------ 2 files changed, 27 insertions(+), 22 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index ebecccb5..193c2f23 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -29,18 +29,23 @@ jobs: - name: Fetch all tags run: git fetch --prune --unshallow --tags - - name: Extract Python version and save as env variable - id: python-version - run: | - file_path="${{ github.workspace }}/${{ matrix.python-version-file }}" - version=$(awk -F'=' '/^python/ {print $2}' "$file_path" | tr -d '~' | xargs) - echo "Python version extracted: $version" - echo "version=$version" >> $GITHUB_ENV - - - name: Set up Python ${{ env.version }} on ${{ matrix.os }} + # - name: Extract Python version and save as env variable + # id: python-version + # run: | + # file_path="${{ github.workspace }}/${{ matrix.python-version-file }}" + # version=$(awk -F'=' '/^python/ {print $2}' "$file_path" | tr -d '~' | xargs) + # echo "Python version extracted: $version" + # echo "version=$version" >> $GITHUB_ENV + + # - name: Set up Python ${{ env.version }} on ${{ matrix.os }} + # uses: actions/setup-python@v5 + # with: + # python-version: ${{ env.version }} + + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: ${{ env.version }} + python-version-file: 'pyproject.toml' - name: Install dependencies run: | diff --git a/pyproject.toml b/pyproject.toml index 43e50916..77a249f5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,29 +37,29 @@ format = "v{base}" latest-tag = true [tool.poetry.dependencies] -python = "3.11.8" -numpy = "1.26.4" -numba = "0.59.0" -scipy = "1.12.0" -matplotlib = "3.8.3" -tqdm = "4.66.2" -pytest-xdist = "3.5.0" +python = "^3.11.8" +numpy = "^1.26.4" +numba = "^0.59.0" +scipy = "^1.12.0" +matplotlib = "^3.8.3" +tqdm = "^4.66.2" +pytest-xdist = "^3.5.0" # Only used for documentation [tool.poetry.group.doc] optional = true [tool.poetry.group.doc.dependencies] -mkdocs-material = "9.5.12" -mkdocstrings-python = "1.8.0" -markdown-katex = "202112.1034" -pytkdocs = "0.16.1" +mkdocs-material = "^9.5.12" +mkdocstrings-python = "^1.8.0" +markdown-katex = "^202112.1034" +pytkdocs = "^0.16.1" [tool.poetry.group.github-actions] optional = true [tool.poetry.group.github-actions.dependencies] -pytest-github-actions-annotate-failures = "0.1.7" +pytest-github-actions-annotate-failures = "^0.1.7" [build-system] requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]