Skip to content

Commit

Permalink
Resolves kiwitcms#1553. Migrates 'test-for-missing-migrations' from T…
Browse files Browse the repository at this point in the history
…ravis CI to GH WF
  • Loading branch information
brymut committed Jun 23, 2020
1 parent 7928c84 commit 38f59a1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,24 @@ 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: |
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
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-
Expand Down

0 comments on commit 38f59a1

Please sign in to comment.