Skip to content

Commit

Permalink
CI: Update test-pathogen-repo-ci
Browse files Browse the repository at this point in the history
Add comments to clearly show the job using pathogen-repo-ci@v0 is for
pathogen repos that do not conform to the standard pathogen repo
structure. Since these are tied to a old tag of the `pathogen-repo-ci`,
the job should not be expected to be updated.

Any new pathogen repos should be added to the `test-pathogen-repo-ci`
job which uses the latest version of `pathogen-repo-ci`.
  • Loading branch information
joverlee521 committed Jul 16, 2024
1 parent 02cf82e commit cf8f9ee
Showing 1 changed file with 32 additions and 7 deletions.
39 changes: 32 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,15 @@ jobs:
LABEL: ${{ needs.generate-version.outputs.label }}

# Run pathogen repo CI builds with the final packages
test-pathogen-repo-ci:
# This is running pathogen-repo-ci@v0 for pathogen repos that do not conform
# to the standard pathogen repo structure and is not expected to be updated.
# Any new pathogen repos should be added to the job using the latest version
# of the pathogen-repo-ci below.
test-pathogen-repo-ci-v0:
needs:
- generate-version
- release
strategy:
# XXX TODO: Test on multiple platforms (os, maybe arch) via the matrix too
matrix:
include:
- { pathogen: avian-flu, build-args: test_target }
Expand All @@ -146,16 +149,38 @@ jobs:
- { pathogen: rsv }
- { pathogen: seasonal-flu, build-args: --configfile profiles/ci/builds.yaml -p }

# Disable some pathogens until pathogen-repo-ci supports custom build directories
# TODO: Re-enable once issue is resolved: https://github.com/nextstrain/.github/issues/63
# - { pathogen: mpox }
# - { pathogen: zika }
name: test-pathogen-repo-ci@v0 (${{ matrix.pathogen }})
uses: nextstrain/.github/.github/workflows/pathogen-repo-ci.yaml@v0
with:
repo: nextstrain/${{ matrix.pathogen }}
build-args: ${{ matrix.build-args }}
runtimes: |
- conda
env: |
NEXTSTRAIN_CONDA_CHANNEL: nextstrain/label/${{ needs.generate-version.outputs.label }}
NEXTSTRAIN_CONDA_BASE_PACKAGE: nextstrain-base ==${{ needs.generate-version.outputs.version }}
artifact-name: ${{ matrix.pathogen }}-outputs
continue-on-error: true

# Run pathogen repo CI builds with the final packages
# This is running pathogen-repo-ci@master for pathogen repos _do_ follow
# standard pathogen repo structure and new pathogens should be added here
# to be supported for future updates such as testing on multiple platforms.
test-pathogen-repo-ci:
needs:
- generate-version
- release
strategy:
# XXX TODO: Test on multiple platforms (os, maybe arch) via the matrix too
matrix:
pathogen:
- mpox
- zika

name: test-pathogen-repo-ci (${{ matrix.pathogen }})
uses: nextstrain/.github/.github/workflows/pathogen-repo-ci.yaml@v0
with:
repo: nextstrain/${{ matrix.pathogen }}
build-args: ${{ matrix.build-args }}
runtimes: |
- conda
env: |
Expand Down

0 comments on commit cf8f9ee

Please sign in to comment.