Skip to content

Commit

Permalink
Add integration tests for galaxy packages using tpv
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang committed Mar 15, 2024
1 parent bd3e94a commit 457ce1a
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/test_galaxy_package_integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test Galaxy package integration with TPV
on:
push:
paths-ignore:
- 'client/**'
- 'doc/**'
pull_request:
paths-ignore:
- 'client/**'
- 'doc/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10']
steps:
- name: Checkout galaxy code
uses: actions/checkout@v3
- name: Checkout tpv code
uses: actions/checkout@v3
with:
repository: galaxyproject/total-perspective-vortex
path: 'tpv'
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: replace tpv galaxy dependencies with local package paths from galaxy source
shell: bash
run: "cat tpv/requirements_test.txt | sed -e '/^galaxy-/ s/-/_/g' | sed -E 's/^galaxy_(.*)$/\.\.\/packages\/\1/g;' > requirements_local.txt;"
- name: replace test requirements with updated requirements that point to local packages
run: "mv requirements_local.txt tpv/requirements_test.txt"
- name: Install required packages
run: pip install tox
- name: Run tox
run: tox -e py${{ matrix.python-version }}
env:
PYTHONUNBUFFERED: "True"
working-directory: 'tpv'

0 comments on commit 457ce1a

Please sign in to comment.