-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into tabular-improvement
- Loading branch information
Showing
4,367 changed files
with
283,607 additions
and
182,775 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
TEST=$(mktemp) | ||
TEST_EXTRA_CLASSES=$(mktemp) | ||
|
||
pytest --collect-only --ignore=test/functional lib/galaxy_test/ test/ > "$TEST" | ||
pytest -o python_classes='Test* *Test *TestCase' --collect-only --ignore=test/functional lib/galaxy_test/ test/ > "$TEST_EXTRA_CLASSES" | ||
|
||
n_tests=$(grep 'tests collected' "$TEST" | sed -e 's/[^0-9]*\([0-9]*\) tests collected.*/\1/') | ||
n_tests_extra_classes=$(grep 'tests collected' "$TEST_EXTRA_CLASSES" | sed -e 's/[^0-9]*\([0-9]*\) tests collected.*/\1/') | ||
|
||
if [ "$n_tests_extra_classes" -gt "$n_tests" ]; then | ||
echo "New test class with name not starting with Test introduced, change it to have tests collected by pytest" | ||
diff "$TEST" "$TEST_EXTRA_CLASSES" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
hda | ||
implementors | ||
purgable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[flake8] | ||
# These are exceptions allowed by Galaxy style guidelines: | ||
# B008 Do not perform function calls in argument defaults (for FastAPI Depends and Body) | ||
# E203 is whitespace before ':'; we follow black's formatting here. See https://black.readthedocs.io/en/stable/faq.html#why-are-flake8-s-e203-and-w503-violated | ||
# E402 module level import not at top of file # TODO, we would like to improve this. | ||
# E501 is line length (delegated to black) | ||
# E701,E704 are multiple statements on one line; we follow black's formatting here. See https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#configuration | ||
# W503 is line breaks before binary operators, which has been reversed in PEP 8. | ||
# D** are docstring linting - which we mostly ignore except D302. (Hopefully we will solve more over time). | ||
ignore = B008,E203,E402,E501,E701,E704,W503,D100,D101,D102,D103,D104,D105,D106,D107,D200,D201,D202,D204,D205,D206,D207,D208,D209,D210,D211,D300,D301,D400,D401,D402,D403,D412,D413 | ||
exclude = lib/tool_shed/test/test_data/repos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Build client for selenium tests | ||
on: | ||
workflow_call: | ||
outputs: | ||
commit-id: | ||
description: Commit ID | ||
value: ${{ jobs.build-client.outputs.commit-id }} | ||
jobs: | ||
build-client: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
commit-id: ${{ steps.client-commit.outputs.commit }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: 'galaxy root' | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.12.1' | ||
cache: 'yarn' | ||
cache-dependency-path: 'galaxy root/client/yarn.lock' | ||
- name: get client commit | ||
id: client-commit | ||
shell: bash | ||
run: echo "commit=$(git rev-parse HEAD 2>/dev/null)" >> $GITHUB_OUTPUT | ||
working-directory: 'galaxy root' | ||
- name: cache client build | ||
uses: actions/cache@v3 | ||
id: cache | ||
with: | ||
key: galaxy-static-${{ steps.client-commit.outputs.commit }} | ||
path: 'galaxy root/static' | ||
- name: Build client | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: make client | ||
working-directory: 'galaxy root' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
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 |
Oops, something went wrong.