From 2797961f7273dd970c4fcaaf1f9e3a4a3b57464f Mon Sep 17 00:00:00 2001 From: Bryan Mutai Date: Tue, 23 Jun 2020 11:45:12 +0300 Subject: [PATCH] Resolves #1553. Migrates 'test-for-missing-migrations' from Travis CI to GH WF --- .github/workflows/sanity.yml | 22 ++++++++++++++++++++++ .travis.yml | 4 ---- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sanity.yml b/.github/workflows/sanity.yml index ed2157f194..3c7434c6fc 100644 --- a/.github/workflows/sanity.yml +++ b/.github/workflows/sanity.yml @@ -42,3 +42,25 @@ jobs: pip install wheel virtualenv pip install -r requirements/readthedocs.txt make build-for-pypi + + test-for-missing-migrations: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.7] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: test-for-missing-migrations + run: | + sudo apt-get install libkrb5-dev + export TEST_DB="SQLite" + export REQUIREMENTS_TXT="requirements/$(echo $TEST_DB | tr '[:upper:]' '[:lower:]' | sed 's/mysql/mariadb/' | sed 's/sqlite/base/').txt" + echo "REQUIREMENTS_TXT=$REQUIREMENTS_TXT" + pip install -r $REQUIREMENTS_TXT + pip install -r requirements/devel.txt + make test_for_missing_migrations diff --git a/.travis.yml b/.travis.yml index 6335a5b446..12dbae639b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,10 +43,6 @@ jobs: - CMD=test - TEST_DB=MySQL - - env: - - CMD=test_for_missing_migrations - - TEST_DB=SQLite - before_install: - echo -n | openssl s_client -connect https://scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-