Skip to content

Commit

Permalink
Merge pull request #184 from ICOS-Carbon-Portal/180-run-the-python-te…
Browse files Browse the repository at this point in the history
…st-matrix-using-github-action

actions - remove python versions 3.8 & 3.9 from the test matrix
  • Loading branch information
ZogopZ authored Apr 12, 2024
2 parents 5d4f612 + 017f264 commit 825cac4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: GitHub Test Matrix
run-name: ${{ github.actor }} is testing pylib with all supported versions of python 🚀
run-name: ${{ github.actor }} is testing pylib with all supported versions of
python 🚀

on:
push:
Expand All @@ -15,7 +16,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] # Define the Python versions here
# Specify the Python versions for testing here.
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -25,6 +27,6 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch # Assuming hatch is a dependency
pip install hatch
- name: Run tests
run: hatch run test
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ classifiers = [
"Topic :: Utilities",
]

requires-python = ">=3.8"
requires-python = ">=3.10"
dependencies = [
"fiona",
"folium",
Expand Down Expand Up @@ -116,7 +116,7 @@ dependencies = [
]

[[tool.hatch.envs.test.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
python = ["3.10", "3.11", "3.12"]

[tool.hatch.envs.test.scripts]
all = "coverage run -m pytest {args}"
Expand Down

0 comments on commit 825cac4

Please sign in to comment.