Skip to content

Commit

Permalink
Test: Loose up version req
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobhaervig committed May 30, 2024
1 parent 6deb0b7 commit 1ffb33d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 22 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
24 changes: 12 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 1ffb33d

Please sign in to comment.