Files
galaxy/.github/workflows/converter_tests.yaml
T
Nicola Soranzo d8773a9598 Use a Galaxy root path with a space for converters and mulled tests
Also:
- Fix integration tests for checkout@v2 action: the working directory is not
  updated any more when `path` is specified
- Use checkout action to clone the galaxy-test-data repo and rsync to move
  them in place
- Install virtualenv<20 when running tests via tox in a directory containing
  spaces, xref. https://github.com/pypa/virtualenv/pull/1660
2020-02-25 02:46:42 +00:00

35 lines
1.1 KiB
YAML

name: Converter tests
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2
with:
path: 'galaxy root'
- name: Clone galaxyproject/galaxy-test-data
uses: actions/checkout@v2
with:
repository: galaxyproject/galaxy-test-data
path: galaxy-test-data
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Cache venv dir
uses: actions/cache@v1
id: pip-cache
with:
path: ~/.cache/pip
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('galaxy root/requirements.txt') }}
- name: Move test data
run: rsync -av --remove-source-files --exclude .git galaxy-test-data/ 'galaxy root/test-data/'
- name: Install planemo
run: pip install planemo
- name: Run tests
run: planemo test --galaxy_python_version ${{ matrix.python-version }} --galaxy_root 'galaxy root' 'galaxy root'/lib/galaxy/datatypes/converters/*xml