Skip to content

Commit 583b112

Browse files
format
Signed-off-by: Daniel Hjelseth Høyer <[email protected]>
1 parent d00b98c commit 583b112

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/code_checker.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,36 @@ jobs:
3838
- name: pytest
3939
run: |
4040
pytest
41+
42+
validate-gql-3.5.0:
43+
runs-on: "ubuntu-latest"
44+
strategy:
45+
matrix:
46+
python-version:
47+
- "3.12"
48+
- "3.13"
49+
env:
50+
SRC_FOLDER: tibber
51+
steps:
52+
- uses: actions/checkout@v6
53+
- name: Set up Python ${{ matrix.python-version }}
54+
uses: actions/setup-python@v6
55+
with:
56+
python-version: ${{ matrix.python-version }}
57+
cache: 'pip'
58+
59+
- name: Install dependency with gql==3.5.0
60+
run: |
61+
pip install -r requirements.txt
62+
pip install gql==3.5.0
63+
pip install mypy pre-commit pytest pytest-asyncio pytest-cov ruff
64+
- uses: actions/cache@v4
65+
with:
66+
path: ~/.cache/pre-commit
67+
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
68+
- name: Run pre-commit
69+
run: pre-commit run --all-files --show-diff-on-failure --color=always
70+
shell: bash
71+
- name: pytest
72+
run: |
73+
pytest

0 commit comments

Comments
 (0)