add smoke test #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: smoke csubst | |
| on: | |
| push: | |
| branches: [ "**" ] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: smoke-csubst-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| smoke: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| install: [source, bioconda] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up micromamba | |
| uses: mamba-org/setup-micromamba@v1 # ← 修正点(ハイフンあり) | |
| with: | |
| environment-name: csubst-smoke | |
| create-args: >- | |
| python=3.11 | |
| iqtree | |
| numpy | |
| cython | |
| pip | |
| condarc: | | |
| channels: | |
| - bioconda | |
| - conda-forge | |
| - defaults | |
| channel_priority: strict | |
| cache-environment: true | |
| cache-downloads: true | |
| - name: Install csubst (from source) | |
| if: matrix.install == 'source' | |
| shell: bash -l {0} | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| - name: Install csubst (from Bioconda) | |
| if: matrix.install == 'bioconda' | |
| shell: bash -l {0} | |
| run: | | |
| micromamba install -y csubst | |
| - name: Run smoke test | |
| shell: bash -l {0} | |
| run: | | |
| bash ci/csubst_smoke.sh | |
| - name: Upload smoke logs (always) | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: smoke-logs-${{ matrix.install }} | |
| path: | | |
| $RUNNER_TEMP/csubst_smoke/** | |
| !$RUNNER_TEMP/csubst_smoke/**/*.fa | |
| !$RUNNER_TEMP/csubst_smoke/**/*.nwk | |
| !$RUNNER_TEMP/csubst_smoke/**/*.txt |