Commit Graph
118 Commits
Author SHA1 Message Date
Nicola Soranzo 87f272f376 Skip node installation for `check_indexes` tests 2023-09-14 14:34:12 +01:00
Nicola Soranzo 23185e7039 Add GitHub CI workflow to test on Python 3.7 the packages needed by Pulsar
so we will be able to drop Python 3.7 support for the rest of the code base.

Add a new `test_galaxy_packages_for_pulsar` tox environment and modify the
`test.sh` script so that when the `--for-pulsar` argument is passed:
- only the 4 packages used by Pulsar are tested
- mypy checks are skipped
- unit tests don't skip the tests marked with
  `external_dependency_management` (i.e. those conda/container-related).

Also:
- Add missing pydantic requirement to the galaxy-objectstore package
2023-09-06 11:07:56 +01:00
mvdbeek 9b6224c88a Add missing unit-coverage environment 2023-08-17 15:27:45 +02:00
mvdbeek 57fd91c4e3 Merge branch 'release_22.05' into release_23.0 2023-08-17 11:36:22 +02:00
mvdbeek eca42d9225 Merge branch 'release_22.01' into release_22.05 2023-08-17 11:35:42 +02:00
mvdbeek 03fa9eb259 Fix up tox.ini 2023-08-17 10:53:03 +02:00
Nicola Soranzo 387aa1dd48 Test first startup on macOS also with Python 3.11
- Allow passing GALAXY_CONDA_PYTHON_VERSION environment variable to
  the startup script to specify the Python version to use when
  creating the `_galaxy_` conda environment.
- Some Shellcheck fixes.
2023-07-21 00:58:33 +01:00
Nicola Soranzo 7fee81607c Add linting with ruff
ruff (https://github.com/charliermarsh/ruff) is a new and extremely fast
Python linter, written in Rust.
Ruff can be used to replace Flake8 (plus a variety of plugins), isort,
pydocstyle, yesqa, eradicate, pyupgrade, and autoflake.
Here ruff is added to our current linters (flake8, flake8-bugbear and isort)
while we assess its reliability.
I've not enabled the isort rules because many of the options we use are not
implemented yet. I have instead enabled the pyupgrade rules (a tool which I
run manually every few months).

Also:
- Fix new linting errors reported by ruff.
2023-01-16 14:34:56 +00:00
Nicola Soranzo 970096f2df Merge branch 'release_22.05' into dev 2022-12-11 22:35:32 +00:00
Nicola Soranzo 36f80978e1 Merge branch 'release_22.01' into release_22.05 2022-12-11 22:33:29 +00:00
Nicola Soranzo a425b5d08d Merge branch 'release_21.09' into release_22.01 2022-12-11 22:32:46 +00:00
Nicola Soranzo 6b9f0902b8 Merge branch 'release_21.01' into release_21.05 2022-12-11 21:54:23 +00:00
Nicola Soranzo 653b415e21 Fix passenv option for tox 4.0
See https://tox.wiki/en/latest/faq.html#tox-4-changed-ini-rules
2022-12-11 18:35:04 +00:00
Nicola Soranzo ee7d51f2f5 Merge branch 'release_22.05' into dev 2022-12-09 11:36:00 +00:00
Nicola Soranzo eb4a4fdde6 Merge branch 'release_22.01' into release_22.05 2022-12-08 17:53:15 +00:00
Nicola Soranzo 1a5f738c35 Merge branch 'release_21.09' into release_22.01 2022-12-08 14:21:59 +00:00
Nicola Soranzo a59d4d48dd Merge branch 'release_21.01' into release_21.05 2022-12-08 12:39:45 +00:00
Dannon Baker 9697d58bee Merge remote-tracking branch 'upstream/release_22.05' into dev 2022-12-07 20:34:56 -05:00
Dannon Baker b5e623fb2b Merge remote-tracking branch 'upstream/release_22.01' into release_22.05 2022-12-07 20:31:12 -05:00
Martin Cech d251aa2d53 [22.01] Rename removed tox configuration option
breaks our tox setup with 4.0.0
2022-12-07 22:52:11 +01:00
Martin Cech 2887eb8747 rename removed tox configuration option 2022-12-07 12:47:41 -08:00
John Davis 10f838f945 Update tox.ini 2022-11-29 18:25:34 -05:00
Nicola Soranzo 1923f4eedd Remove outdated check scripts 2022-11-07 15:44:02 +00:00
Nicola Soranzo afa7b713bc Replace `GALAXY_TEST_INCLUDE_SLOW env variable with external_dependency_management` pytest marker
Fix mulled tests missing tests in `test/unit/tool_util/test_conda_resolution.py` .

Also:
- Add `coverage` tox factor to generate coverage report.
2022-11-03 21:43:37 +00:00
John Davis e43552fdc5 Rename db.sh > manage_db.sh, following code review feedback 2022-09-28 15:45:00 -04:00
John Davis 5d376fdacc Drop create_db.sh, create_db.py (see note)
For ToolShed, we have create_toolshed_db.sh.

For galaxy and toolshed install databases (gxy and tsi branches under
alembic), we use the `init` subcommand of the `db.sh` script (`./db.sh
init`), which has exactly the same functionality as these deleted
scripts.

To the best of my knowledge, these are not used anywhere else (unlike,
for example, scripts/manage_db.py, which is called from the
ansible-galaxy role).
2022-09-28 15:25:43 -04:00
John Davis b6a5286487 Rename db.sh > manage_db.sh, following code review feedback 2022-09-16 00:39:44 -04:00
John Davis 6bb29939e2 Drop create_db.sh, create_db.py (see note)
For ToolShed, we have create_toolshed_db.sh.

For galaxy and toolshed install databases (gxy and tsi branches under
alembic), we use the `init` subcommand of the `db.sh` script (`./db.sh
init`), which has exactly the same functionality as these deleted
scripts.

To the best of my knowledge, these are not used anywhere else (unlike,
for example, scripts/manage_db.py, which is called from the
ansible-galaxy role).
2022-09-16 00:39:03 -04:00
Nicola Soranzo b204e8a8fd Add unit tests for CWL parsing 2022-06-22 03:25:55 +01:00
Nicola Soranzo 5efdad7f84 Move test_galaxy_packages to GitHub workflows
to make use of Python package caching.
2022-06-02 17:24:23 +01:00
Sergey Golitsynskiy ee5a3450bb Update db index testing: test both models, gxy and tsi
Also, remove unused env var
2022-03-09 18:41:03 -05:00
Nicola Soranzo 72874b74a5 Add tox environment and GitHub workflow for reports startup test
Also:
- Fix tox envlist still using py36
- Partially fix running reports with `APP_WEBSERVER=dev`
2021-12-18 15:56:46 +00:00
Michael R. Crusoe 7819fdc7a6 tighten type ignores 2021-11-23 13:12:07 +01:00
John Chilton c313635676 Merge pull request #11772 from mvdbeek/run_sh_gunicorn
Add circus + gunicorn option when using run.sh
2021-04-12 10:31:30 -04:00
mvdbeek e7f2211d19 Test different APP_WEBSERVER values on first_startup 2021-04-07 14:39:06 +02:00
Nate Coraor cc1f471490 Release process overhaul
- Convert release Makefile targets to a script
- Update package versions from Galaxy version instead of leaving them
  uncoupled
- Use next-dev-version process on release branches when in between point
  releases
- Automatically detect and increment versions
- Test merging release branches forward before pushing releases
- Support multiple rc versions (will be more useful for package testing)
- Support building local versions of packages
- Tests for the release script
2021-03-30 12:11:48 -04:00
John Chilton 870b93d79d Pin mypy. 2021-01-22 13:12:59 -05:00
Nicola Soranzo 70def633f1 Replace pipenv with poetry. Update all dependencies 2021-01-21 20:30:00 +00:00
Nicola Soranzo 71bbdda644 Add py36-mypy to default tox tests 2021-01-11 18:48:11 +00:00
John Chilton 5d9b0be4c5 mypy the last bits of it 2021-01-02 21:25:38 -05:00
John Chilton 7ab405e010 Expand mypy coverage in root project. 2021-01-02 21:07:21 -05:00
John Chilton 8484f40f31 mypy for test/ 2020-12-25 17:38:51 -05:00
Marius van den Beek 65718c9d30 Merge pull request #10350 from ic4f/dev_missing_indexes_script
Script for finding missing db indexes
2020-10-08 16:24:08 +02:00
Nicola Soranzo 9d74bba7fb Drop support for retired Python 3.5
Upgrade syntax using `pyupgrade --py36-plus` .

Manually drop several `six` imports.

Also:
- Remove broken pr_cache in scripts/bootstrap_history.py
- Fix broken prefix removal in lib/galaxy/tool_util/deps/mulled/mulled_build.py
2020-10-07 11:52:13 +01:00
Sergey Golitsynskiy 65ebbce458 Use passenv to pass env var to tox 2020-10-04 22:48:06 -04:00
Sergey GolitsynskiyandMarius van den Beek 7040c0056b Skip client build
Co-authored-by: Marius van den Beek <m.vandenbeek@gmail.com>
2020-10-04 22:16:32 -04:00
Sergey Golitsynskiy 2cc090847e Call common_startup.sh; rebase 2020-10-03 02:27:47 -04:00
Sergey Golitsynskiy f11baa411c Add script to tox.ini 2020-10-03 02:26:40 -04:00
Nicola Soranzo e8466d002a Python 2.7 is officially unsupported on 20.05 2020-06-20 19:04:57 +01:00
Nicola Soranzo b9dac3c485 Use osx_startup job to test using Python from a conda env 2020-03-27 19:04:40 +00:00