|
| 1 | +name: Main tool tests |
| 2 | +on: |
| 3 | + push: |
| 4 | + paths-ignore: |
| 5 | + - 'client/**' |
| 6 | + - 'doc/**' |
| 7 | + - 'lib/galaxy_test/selenium/**' |
| 8 | + - 'packages/**' |
| 9 | + pull_request: |
| 10 | + paths-ignore: |
| 11 | + - 'client/**' |
| 12 | + - 'doc/**' |
| 13 | + - 'lib/galaxy_test/selenium/**' |
| 14 | + - 'packages/**' |
| 15 | +env: |
| 16 | + GALAXY_TEST_DBURI: 'postgresql://postgres:postgres@localhost:5432/galaxy?client_encoding=utf8' |
| 17 | + GALAXY_TEST_RAISE_EXCEPTION_ON_HISTORYLESS_HDA: '1' |
| 18 | +concurrency: |
| 19 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 20 | + cancel-in-progress: true |
| 21 | +jobs: |
| 22 | + test: |
| 23 | + name: Test |
| 24 | + runs-on: ubuntu-latest |
| 25 | + strategy: |
| 26 | + matrix: |
| 27 | + python-version: ['3.9'] |
| 28 | + services: |
| 29 | + postgres: |
| 30 | + image: postgres:17 |
| 31 | + env: |
| 32 | + POSTGRES_USER: postgres |
| 33 | + POSTGRES_PASSWORD: postgres |
| 34 | + POSTGRES_DB: postgres |
| 35 | + ports: |
| 36 | + - 5432:5432 |
| 37 | + steps: |
| 38 | + - uses: actions/checkout@v4 |
| 39 | + with: |
| 40 | + path: 'galaxy root' |
| 41 | + persist-credentials: false |
| 42 | + - name: Read Node.js version |
| 43 | + id: node-version |
| 44 | + run: echo "version=$(cat 'galaxy root/client/.node_version')" >> $GITHUB_OUTPUT |
| 45 | + - uses: actions/setup-node@v4 |
| 46 | + with: |
| 47 | + node-version: ${{ steps.node-version.outputs.version }} |
| 48 | + cache: 'yarn' |
| 49 | + cache-dependency-path: 'galaxy root/client/yarn.lock' |
| 50 | + - uses: actions/setup-python@v5 |
| 51 | + with: |
| 52 | + python-version: ${{ matrix.python-version }} |
| 53 | + cache: 'pip' |
| 54 | + cache-dependency-path: 'galaxy root/requirements.txt' |
| 55 | + - name: Get full Python version |
| 56 | + id: full-python-version |
| 57 | + shell: bash |
| 58 | + run: echo "version=$(python -c 'import sys; print("-".join(str(v) for v in sys.version_info))')" >> $GITHUB_OUTPUT |
| 59 | + - name: Cache galaxy venv |
| 60 | + uses: actions/cache@v4 |
| 61 | + with: |
| 62 | + path: 'galaxy root/.venv' |
| 63 | + key: gxy-venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('galaxy root/requirements.txt') }}-framework |
| 64 | + - name: Run tests |
| 65 | + run: ./run_tests.sh --coverage --main_tools |
| 66 | + working-directory: 'galaxy root' |
| 67 | + - uses: codecov/codecov-action@v3 |
| 68 | + with: |
| 69 | + flags: main-tools |
| 70 | + working-directory: 'galaxy root' |
| 71 | + - uses: actions/upload-artifact@v4 |
| 72 | + if: failure() |
| 73 | + with: |
| 74 | + name: Main tool test results (${{ matrix.python-version }}) |
| 75 | + path: 'galaxy root/run_framework_tests.html' |
0 commit comments