Move test_galaxy_packages to GitHub workflows

to make use of Python package caching.
This commit is contained in:
Nicola Soranzo
2022-06-02 16:31:51 +01:00
parent 493db8669c
commit 5efdad7f84
3 changed files with 41 additions and 16 deletions
-13
View File
@@ -17,8 +17,6 @@ variables:
- ~/.cache/yarn
install_tox: &install_tox
run: pip install tox
install_deb_reqs: &install_deb_reqs
run: sudo apt-get update && sudo apt-get install ffmpeg nodejs -y
set_workdir: &set_workdir
working_directory: ~/repo
requires_get_code: &requires_get_code
@@ -93,15 +91,6 @@ jobs:
- run: sudo apt-get install -y libxml2-utils
- *install_tox
- run: tox -e validate_test_tools
test_galaxy_packages:
docker:
- image: cimg/python:3.7
<<: *set_workdir
steps:
- *restore_repo_cache
- *install_tox
- *install_deb_reqs
- run: tox -e test_galaxy_packages
js_lint:
docker:
- image: cimg/node:16.13.2
@@ -117,8 +106,6 @@ workflows:
get_code_and_test:
jobs:
- get_code
- test_galaxy_packages:
<<: *requires_get_code
- validate_test_tools:
<<: *requires_get_code
- js_lint:
@@ -0,0 +1,40 @@
name: Test Galaxy packages
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.7', '3.10']
steps:
- uses: actions/checkout@v3
with:
path: 'galaxy root'
- uses: actions/setup-python@v3
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('galaxy root/requirements.txt') }}
- name: Install ffmpeg
run: sudo apt-get update && sudo apt-get -y install ffmpeg
- name: Install tox
run: pip install tox
- name: Run tests
run: tox -e test_galaxy_packages
working-directory: 'galaxy root'
+1 -3
View File
@@ -14,6 +14,7 @@ commands =
unit: bash run_tests.sh -u
# start with test here but obviously someday all of it...
mypy: mypy test lib
test_galaxy_packages: bash packages/test.sh
whitelist_externals = bash
passenv =
CI CONDA_EXE
@@ -45,9 +46,6 @@ whitelist_externals = make
[testenv:mako_count]
commands = bash .ci/check_mako.sh
[testenv:test_galaxy_packages]
commands = bash packages/test.sh
[testenv:test_galaxy_release]
commands = bash test/release.sh