Files
galaxy/.github/workflows/framework.yaml
T
Nicola Soranzo 258cf8eb3a Fix invalid framework GH workflow
Fix:
```
The workflow is not valid. .github/workflows/framework.yaml (Line: 8, Col: 1): 'env' is already defined
```

Also:
- consistently sort top-level `env` and `concurrency` (as in
  https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions )
- sort env variables alphabetically
2021-10-23 00:07:40 +01:00

45 lines
1.3 KiB
YAML

name: Framework tests
on: [push, pull_request]
env:
GALAXY_TEST_DBURI: 'postgresql://postgres:postgres@localhost:5432/galaxy?client_encoding=utf8'
GALAXY_TEST_RAISE_EXCEPTION_ON_HISTORYLESS_HDA: '1'
concurrency:
group: framework-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7']
services:
postgres:
image: postgres:13
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 --framework
working-directory: 'galaxy root'
- uses: actions/upload-artifact@v2
if: failure()
with:
name: Framework test results (${{ matrix.python-version }})
path: 'galaxy root/run_framework_tests.html'