Skip to content

Commit

Permalink
finish planemo-version
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Nov 27, 2022
1 parent 81e2b8b commit 1eafcce
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ jobs:
chunk-list: ${{ needs.setup.outputs.chunk-list }}
galaxy-head-sha: ${{ needs.setup.outputs.galaxy-head-sha }}
# test-timeout: 900
planemo-version: ${{ needs.setup.outputs.planemo-version }}
secrets:
PAT: ${{ secrets.PAT }}
1 change: 1 addition & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
with:
repository-list: ${{ needs.setup.outputs.repository-list }}
galaxy-head-sha: ${{ needs.setup.outputs.galaxy-head-sha }}
planemo-version: ${{ inputs.planemo-version }}
secrets:
TTS_API_KEY: ${{ secrets.TTS_API_KEY }}
TS_API_KEY: ${{ secrets.TS_API_KEY }}
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/wf_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
default: "[\"3.7\"]"
required: false
type: string
planemo-version:
description: 'Planemo version to use'
default: "planemo"
required: false
type: string
secrets:
TTS_API_KEY:
required: true
Expand Down Expand Up @@ -42,19 +47,21 @@ jobs:
id: cache-pip
with:
path: ~/.cache/pip
key: pip_cache_py_${{ matrix.python-version }}_gxy_${{ inputs.galaxy-head-sha }}
key: pip_cache_py_${{ matrix.python-version }}_gxy_${{ inputs.galaxy-head-sha }}_planemo_${{ steps.get-galaxy-sha.outputs.planemo-version }}
- name: Deploy on testtoolshed
uses: galaxyproject/planemo-ci-action@v1
with:
mode: deploy
repository-list: ${{ inputs.repository-list }}
shed-target: testtoolshed
shed-key: ${{ secrets.TTS_API_KEY }}
planemo-version: ${{ inputs.planemo-version }}
continue-on-error: true
- name: Deploy on toolshed
uses: galaxyproject/planemo-ci-action@v1
with:
mode: deploy
repository-list: ${{ inputs.repository-list }}
shed-target: toolshed
shed-key: ${{ secrets.TS_API_KEY }}
shed-key: ${{ secrets.TS_API_KEY }}
planemo-version: ${{ inputs.planemo-version }}
10 changes: 8 additions & 2 deletions .github/workflows/wf_lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ on:
default: "[\"ubuntu-20.04\"]"
required: false
type: string
planemo-version:
description: 'Planemo version to use'
default: "planemo"
required: false
type: string
outputs:
result:
description: "Result of the lint jobs"
Expand All @@ -77,7 +82,7 @@ jobs:
id: cache-pip
with:
path: ~/.cache/pip
key: pip_cache_py_${{ matrix.python-version }}_gxy_${{ inputs.galaxy-head-sha }}
key: pip_cache_py_${{ matrix.python-version }}_gxy_${{ inputs.galaxy-head-sha }}_planemo_${{ steps.get-galaxy-sha.outputs.planemo-version }}
- name: Planemo lint
uses: galaxyproject/planemo-ci-action@v1
id: lint
Expand All @@ -87,6 +92,7 @@ jobs:
fail-level: ${{ inputs.fail-level }}
repository-list: ${{ inputs.repository-list }}
tool-list: ${{ inputs.tool-list }}
planemo-version: ${{ inputs.planemo-version }}
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
Expand All @@ -113,7 +119,7 @@ jobs:
id: cache-pip
with:
path: ~/.cache/pip
key: pip_cache_py_${{ matrix.python-version }}_gxy_${{ inputs.galaxy-head-sha }}
key: pip_cache_py_${{ matrix.python-version }}_gxy_${{ inputs.galaxy-head-sha }}_planemo_${{ steps.get-galaxy-sha.outputs.planemo-version }}
- name: Install flake8
run: pip install flake8 flake8-import-order
- name: Flake8
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wf_setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ jobs:
id: cache-pip
with:
path: ~/.cache/pip
key: pip_cache_py_${{ matrix.python-version }}_gxy_${{ steps.get-galaxy-sha.outputs.galaxy-head-sha }}
key: pip_cache_py_${{ matrix.python-version }}_gxy_${{ steps.get-galaxy-sha.outputs.galaxy-head-sha }}_planemo_${{ steps.get-galaxy-sha.outputs.planemo-version }}
- name: Cache .planemo
uses: actions/cache@v3
id: cache-planemo
with:
path: ~/.planemo
key: planemo_cache_py_${{ matrix.python-version }}_gxy_${{ steps.get-galaxy-sha.outputs.galaxy-head-sha }}
key: planemo_cache_py_${{ matrix.python-version }}_gxy_${{ steps.get-galaxy-sha.outputs.galaxy-head-sha }}_planemo_${{ steps.get-galaxy-sha.outputs.planemo-version }}
# Install the `wheel` package so that when installing other packages which
# are not available as wheels, pip will build a wheel for them, which can be cached.
- name: Install wheel
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/wf_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ on:
default: 900
required: false
type: number
planemo-version:
description: 'Planemo version to use'
default: "planemo"
required: false
type: string
secrets:
PAT:
required: false
Expand Down Expand Up @@ -82,14 +87,14 @@ jobs:
id: cache-pip
with:
path: ~/.cache/pip
key: pip_cache_py_${{ matrix.python-version }}_gxy_${{ inputs.galaxy-head-sha }}
key: pip_cache_py_${{ matrix.python-version }}_gxy_${{ inputs.galaxy-head-sha }}_planemo_${{ steps.get-galaxy-sha.outputs.planemo-version }}
- name: Cache .planemo
if: ${{ inputs.cache-planemo }}
uses: actions/cache@v3
id: cache-planemo
with:
path: ~/.planemo
key: planemo_cache_py_${{ matrix.python-version }}_gxy_${{ inputs.galaxy-head-sha }}
key: planemo_cache_py_${{ matrix.python-version }}_gxy_${{ inputs.galaxy-head-sha }}_planemo_${{ steps.get-galaxy-sha.outputs.planemo-version }}
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v1
id: cpu-cores
Expand All @@ -108,6 +113,7 @@ jobs:
galaxy-slots: ${{ steps.cpu-cores.outputs.count }}
# Limit each test to 15 minutes
test_timeout: ${{ inputs.test-timeout }}
planemo-version: ${{ inputs.planemo-version }}
- uses: actions/upload-artifact@v3
with:
name: 'Tool test output ${{ matrix.chunk }}'
Expand Down Expand Up @@ -137,12 +143,13 @@ jobs:
id: cache-pip
with:
path: ~/.cache/pip
key: pip_cache_py_${{ matrix.python-version }}_gxy_${{ inputs.galaxy-head-sha }}
key: pip_cache_py_${{ matrix.python-version }}_gxy_${{ inputs.galaxy-head-sha }}_planemo_${{ steps.get-galaxy-sha.outputs.planemo-version }}
- name: Combine outputs
uses: galaxyproject/planemo-ci-action@v1
id: combine
with:
mode: combine
planemo-version: ${{ inputs.planemo-version }}
html-report: true
- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 1eafcce

Please sign in to comment.