From d47f1b9c5a3ea2def2dbd875bc37c92c0b5152b5 Mon Sep 17 00:00:00 2001 From: "Gustavo A. Salazar" Date: Fri, 26 Mar 2021 12:16:43 +0000 Subject: [PATCH] gh-actions: flake is not a failing step --- .github/workflows/test.yml | 1 + ci/configuration.yaml | 12 ------------ tests/webuploader/test_import_samples_internal.py | 3 ++- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4db7e1be6..5dc91a2e0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -51,6 +51,7 @@ jobs: cat $EMG_CONFIG python setup.py test - name: Flake + continue-on-error: true run: | flake8 --version flake8 -v . diff --git a/ci/configuration.yaml b/ci/configuration.yaml index 5a0f3e0bd..871c1979a 100644 --- a/ci/configuration.yaml +++ b/ci/configuration.yaml @@ -7,19 +7,7 @@ emg: PASSWORD: 'root' HOST: 127.0.0.1 PORT: 3306 -# era: -# ENGINE: 'django.db.backends.oracle' -# NAME: testdb -# USER: test -# PASSWORD: test -# HOST: 127.0.0.1 -# PORT: 3306 session_engine: 'django.contrib.sessions.backends.cache' - # caches: - # default: - # BACKEND: "django_redis.cache.RedisCache" - # LOCATION: "redis://127.0.0.1:6379/0" - # KEY_PREFIX: "emg" emg_backend_auth: "https://backend" mongodb: db: 'testdb' diff --git a/tests/webuploader/test_import_samples_internal.py b/tests/webuploader/test_import_samples_internal.py index 4692adcaa..92fb945c4 100644 --- a/tests/webuploader/test_import_samples_internal.py +++ b/tests/webuploader/test_import_samples_internal.py @@ -12,7 +12,8 @@ @pytest.mark.django_db -@pytest.mark.skipif(('TRAVIS' in os.environ and os.environ['TRAVIS'] == 'true') or ('CI' in os.environ and os.environ['CI'] == 'true'), +@pytest.mark.skipif(('TRAVIS' in os.environ and os.environ['TRAVIS'] == 'true') or + ('CI' in os.environ and os.environ['CI'] == 'true'), reason='Skipping this test on Travis CI as internal databases are ' 'required for full integration tests') class TestImportSample(TransactionTestCase):