mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 12:13:33 +08:00
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
72 lines
2.5 KiB
YAML
72 lines
2.5 KiB
YAML
name: Converter tests
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- 'client/**'
|
|
- 'doc/**'
|
|
- 'packages/**'
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'client/**'
|
|
- 'doc/**'
|
|
- 'packages/**'
|
|
schedule:
|
|
# Run at midnight UTC every Tuesday
|
|
- cron: '0 0 * * 2'
|
|
env:
|
|
GALAXY_TEST_RAISE_EXCEPTION_ON_HISTORYLESS_HDA: '1'
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.9']
|
|
steps:
|
|
- if: github.event_name == 'schedule'
|
|
run: |
|
|
echo "GALAXY_CONFIG_OVERRIDE_METADATA_STRATEGY=extended" >> $GITHUB_ENV
|
|
echo "GALAXY_CONFIG_OVERRIDE_OUTPUTS_TO_WORKING_DIRECTORY=true" >> $GITHUB_ENV
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
path: 'galaxy root'
|
|
persist-credentials: false
|
|
- name: Clone galaxyproject/galaxy-test-data
|
|
uses: actions/checkout@v5
|
|
with:
|
|
repository: galaxyproject/galaxy-test-data
|
|
path: galaxy-test-data
|
|
persist-credentials: false
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: 'pip'
|
|
cache-dependency-path: '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: Determine converters to check
|
|
run: |
|
|
ls 'galaxy root'/lib/galaxy/datatypes/converters/*xml | grep -v -f 'galaxy root'/lib/galaxy/datatypes/converters/.tt_skip > tool_list.txt
|
|
echo "Skipping checks for the following converters:"
|
|
ls 'galaxy root'/lib/galaxy/datatypes/converters/*xml | grep -f 'galaxy root'/lib/galaxy/datatypes/converters/.tt_skip
|
|
echo "Checking only the following converters:"
|
|
cat tool_list.txt
|
|
- name: Lint converters
|
|
run: |
|
|
mapfile -t TOOL_ARRAY < tool_list.txt
|
|
planemo lint --skip CitationsMissing,HelpEmpty,HelpMissing --report_level warn "${TOOL_ARRAY[@]}"
|
|
- name: Run tests
|
|
run: |
|
|
mapfile -t TOOL_ARRAY < tool_list.txt
|
|
planemo test --biocontainers --galaxy_python_version ${{ matrix.python-version }} --galaxy_root 'galaxy root' "${TOOL_ARRAY[@]}"
|
|
- uses: actions/upload-artifact@v5
|
|
if: failure()
|
|
with:
|
|
name: Converter test results (${{ matrix.python-version }})
|
|
path: tool_test_output.html
|