Skip to content

Commit

Permalink
Also (temporarily) test against paste
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Dec 22, 2020
1 parent 7d3c6db commit 3ab8a02
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/api_paste.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: API tests (legacy paste)
on: [push, pull_request]
env:
GALAXY_TEST_DBURI: 'postgres://postgres:postgres@localhost:5432/galaxy?client_encoding=utf8'
GALAXY_TEST_USE_UVICORN: false
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7']
services:
postgres:
image: postgres:11
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
with:
path: 'galaxy root'
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip dir
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('galaxy root/requirements.txt') }}
- name: Run tests
run: ./run_tests.sh --skip_flakey_fails -api
working-directory: 'galaxy root'
- uses: actions/upload-artifact@v2
if: failure()
with:
name: API test results
path: 'galaxy root/run_api_tests.html'
2 changes: 1 addition & 1 deletion lib/galaxy_test/driver/driver_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
""")

DEFAULT_LOCALES = "en"
USE_UVICORN = True
USE_UVICORN = asbool(os.environ.get('GALAXY_TEST_USE_UVICORN', True))

log = logging.getLogger("test_driver")

Expand Down

0 comments on commit 3ab8a02

Please sign in to comment.