From d216e77643c91442b0f51d7b757f9ada4fce0671 Mon Sep 17 00:00:00 2001 From: Jover Lee Date: Tue, 16 Jul 2024 15:42:55 -0700 Subject: [PATCH] CI: Update test-pathogen-repo-ci 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`. --- .github/workflows/ci.yaml | 41 +++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 006a061..24e0e4e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 } @@ -146,12 +149,7 @@ 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 (${{ matrix.pathogen }}) + name: test-pathogen-repo-ci@v0 (${{ matrix.pathogen }}) uses: nextstrain/.github/.github/workflows/pathogen-repo-ci.yaml@v0 with: repo: nextstrain/${{ matrix.pathogen }} @@ -163,3 +161,30 @@ jobs: 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 that _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@master + with: + repo: nextstrain/${{ matrix.pathogen }} + 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