Skip to content

Commit

Permalink
Allow 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkleiven committed Oct 26, 2022
1 parent 727def9 commit 4054b02
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 22 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ jobs:
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
poetry install --no-interaction --no-root
run: poetry install --no-interaction

- name: Linting
run: poetry run pre-commit run --all-files
Expand All @@ -51,18 +49,6 @@ jobs:
python-version: [ '3.9', '3.10']
poetry-version: [ 1.2.1 ]

services:
rdf4j:
# Docker Hub image
image: eclipse/rdf4j-workbench
ports:
- 8080:8080
blazegraph:
# Docker Hub image
image: openkbs/blazegraph
ports:
- 9999:9999

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -93,16 +79,15 @@ jobs:
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
run: poetry install --no-interaction

- name: Run pytest
if: ${{ ( runner.os != 'Linux' ) || ( matrix.python-version != '3.9' ) }}
run: poetry run pytest -q tests

- name: Run pytest with coverage
if: ${{ ( runner.os == 'Linux' ) && ( matrix.python-version == '3.9' ) }}
run: poetry run pytest -q --cov=cimsparql --cov-report=xml tests
run: poetry run pytest -q --cov=psseio --cov-report=xml tests

- name: Upload coverage
if: ${{ ( runner.os == 'Linux' ) && ( matrix.python-version == '3.9' ) }}
Expand Down
19 changes: 16 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Statnett Datascience <[email protected]>"]
repository = "https://github.com/statnett/psseio.git"

[tool.poetry.dependencies]
python = "^3.10"
python = "^3.9"
pandas = "*"

[tool.poetry.dev-dependencies]
Expand Down

0 comments on commit 4054b02

Please sign in to comment.