diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index f7ec6cea6..72b7191e5 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -11,7 +11,8 @@ jobs: runs-on: ubuntu-latest strategy: max-parallel: 5 - + env: + GITHUB_ACTIONS_CI: true steps: - uses: actions/checkout@v2 - name: Set up Miniconda diff --git a/mlxtend/evaluate/tests/test_bias_variance_decomp.py b/mlxtend/evaluate/tests/test_bias_variance_decomp.py index eb17c0511..367f82482 100644 --- a/mlxtend/evaluate/tests/test_bias_variance_decomp.py +++ b/mlxtend/evaluate/tests/test_bias_variance_decomp.py @@ -113,7 +113,10 @@ def test_mse_bagging(): APPVEYOR = False -@pytest.mark.skipif(TRAVIS or APPVEYOR, reason="TensorFlow dependency") +GITHUB_ACTIONS = os.getenv('GITHUB_ACTIONS_CI', 'false').lower() == 'true' + + +@pytest.mark.skipif(TRAVIS or APPVEYOR or GITHUB_ACTIONS, reason="TensorFlow dependency") def test_keras(): import tensorflow as tf