diff --git a/.github/workflows/planemo.yml b/.github/workflows/planemo.yml new file mode 100644 index 0000000..1ff3502 --- /dev/null +++ b/.github/workflows/planemo.yml @@ -0,0 +1,91 @@ +name: Python CI/Planemo + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.11] + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Cache Python packages + uses: actions/cache@v4 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-py${{ matrix.python-version }} + restore-keys: | + ${{ runner.os }}-pip-py + - name: Install dependencies + run: pip install flake8 flake8-import-order planemo Pygments + - name: Check dependencies + run: planemo --version + - name: Lint with planemo & flake8 + run: planemo lint + - name: Shed lint with planemo + run: planemo shed_lint --tools --ensure_metadata --urls --report_level warn --fail_level error --recursive . + + test: + needs: [ lint ] + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.11] + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Cache Python packages + uses: actions/cache@v4 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-py${{ matrix.python-version }} + restore-keys: | + ${{ runner.os }}-pip-py + - name: Cache .planemo + uses: actions/cache@v4 + with: + path: ~/.planemo + key: ${{ runner.os }}-planemo-py${{ matrix.python-version }} + restore-keys: | + ${{ runner.os }}-planemo-py + - name: Install Planemo + run: pip install Planemo + - name: Check Planemo version + run: planemo --version + - name: Run tests + run: planemo test + + deploy: + if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} + needs: [ test ] + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.11] + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Cache Python packages + uses: actions/cache@v4 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-py${{ matrix.python-version }} + restore-keys: | + ${{ runner.os }}-pip-py + - name: Install dependencies + run: pip install flake8 flake8-import-order planemo Pygments + - name: Check dependencies + run: planemo --version + - name: Deploy + run: planemo shed_update --shed_target toolshed --shed_key_from_env ${{ secrets.SHED_KEY }} --force_repository_creation . \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 98e5b85..0000000 --- a/.travis.yml +++ /dev/null @@ -1,50 +0,0 @@ -language: python -cache: pip - -python: 3.7 - -jobs: - include: - - stage: lint - addons: {} - before_install: skip - install: - - pip install -U importlib-metadata - - pip install flake8 flake8-import-order planemo Pygments - - planemo --version - script: - - set -e - - planemo lint - - planemo shed_lint --tools --ensure_metadata --urls --report_level warn --fail_level error --recursive . - - - stage: test - script: - - set -e - - planemo test --galaxy_python_version "$TRAVIS_PYTHON_VERSION" --conda_exec "$PLANEMO_CONDA_PREFIX/bin/mamba" - - - stage: deploy - if: (type = push) AND (branch = master) - addons: {} - before_install: skip - install: - - pip install planemo - - planemo --version - script: - - set -e - - | - if [ "$TRAVIS_PULL_REQUEST" == "false" -a "$TRAVIS_BRANCH" == "master" ]; then - planemo shed_update --shed_target toolshed --shed_key_from_env SHED_KEY --force_repository_creation . - fi - -before_install: - - export PLANEMO_CONDA_PREFIX="$HOME/conda" - - unset JAVA_HOME - -install: - - pip install planemo - - planemo conda_init - - export PATH="$PLANEMO_CONDA_PREFIX/bin:$PATH" - - conda install -y -c conda-forge mamba - - planemo --version - - conda --version - diff --git a/CLIFinder.xml b/CLIFinder.xml index dd7427b..6e5a730 100644 --- a/CLIFinder.xml +++ b/CLIFinder.xml @@ -201,19 +201,19 @@ perl '$__tool_directory__/script/CLIFinder.pl' - - + + - - - - - + + + + +