mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 23:49:37 +08:00
Fixes: https://github.com/galaxyproject/galaxy/issues/16394 Also upgrade code to Python 3.8 syntax with: ``` ack --type=python -f | grep -v '^lib/galaxy/schema/bco/\|^lib/galaxy/schema/drs/\|lib/tool_shed_client/schema/trs.*.py\|^tools/\|^.venv/\|^.tox/' | grep -v '^lib/galaxy/files/sources/\|^lib/galaxy/job_metrics/\|^lib/galaxy/objectstore/\|^lib/galaxy/tool_util/\|^lib/galaxy/util/' | xargs pyupgrade --py38-plus ```
29 lines
810 B
YAML
29 lines
810 B
YAML
name: Check test class names
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '.ci/check_test_class_names.sh'
|
|
- 'lib/galaxy_test/**'
|
|
- 'test/**'
|
|
jobs:
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.8']
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Cache pip dir
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: pip-cache-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
|
|
- name: Install Python dependencies
|
|
run: pip install -r requirements.txt -r lib/galaxy/dependencies/dev-requirements.txt
|
|
- name: Run tests
|
|
run: .ci/check_test_class_names.sh
|