From 950d60b82447756deca169920a36e95ca3b780cf Mon Sep 17 00:00:00 2001 From: Alexander Loechel Date: Tue, 30 Apr 2024 23:23:31 +0200 Subject: [PATCH] test fixtures --- .github/workflows/ci.yaml | 4 +++- tests/test_settings.py | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a2d669b..ee2a02a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,6 +7,8 @@ on: jobs: build: runs-on: ubuntu-latest + env: + RUN_ON_CI: True strategy: matrix: python-version: ['3.10', '3.11', '3.12'] @@ -22,4 +24,4 @@ jobs: python -m pip install --upgrade pip python -m pip install tox tox-gh-actions - name: Test with tox - run: tox \ No newline at end of file + run: tox diff --git a/tests/test_settings.py b/tests/test_settings.py index 4797fdc..52b9fbf 100644 --- a/tests/test_settings.py +++ b/tests/test_settings.py @@ -1,6 +1,7 @@ from edutap.wallet_google.session import GoogleWalletSettings from pprint import pprint +import os import pytest @@ -20,7 +21,9 @@ def test_base_settings(): ] -@pytest.mark.skip("should only be run locally") +@pytest.mark.skipif( + os.environ.get("RUN_ON_CI", False), reason="should only be run locally" +) def test_local_settings(): settings = GoogleWalletSettings() print("Test Settings - Dump Settings Values:")