MAINT: update version number #34
This file contains 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: CI | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '35 4 2 * *' # Every 2nd day of the month. | |
pull_request: | |
push: | |
workflow_run: | |
workflows: [Build IQ-TREE Static Library] | |
types: | |
- completed | |
jobs: | |
tests: | |
name: Run test suite with Python ${{matrix.python-version}} on ${{matrix.os}} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-13, macos-14] # Intel linux, Intel Mac, ARM Mac | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: "actions/checkout@v4" | |
with: | |
fetch-depth: 0 | |
submodules: "recursive" | |
- uses: "actions/setup-python@v5" | |
with: | |
python-version: "${{ matrix.python-version }}" | |
- name: Get Latest IQ-TREE Build | |
id: get-latest-build | |
run: | | |
workflow_id=$(curl -sSL \ | |
-H 'Accept: application/vnd.github+json' \ | |
-H 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ | |
-H 'X-GitHub-Api-Version: 2022-11-28' \ | |
"https://api.github.com/repos/iqtree/piqtree2/actions/workflows/build_iqtree.yml/runs" \ | |
| jq -r '.workflow_runs[0].id') | |
echo "workflow_id=$workflow_id" >> $GITHUB_OUTPUT | |
- uses: actions/download-artifact@v4 | |
with: | |
name: ${{matrix.os}}-libiqtree2.a | |
path: src/piqtree2/libiqtree/ | |
github-token: ${{ github.token }} | |
run-id: ${{ steps.get-latest-build.outputs.workflow_id }} | |
- name: Run Nox Testing | |
run: | | |
pip install nox | |
nox -s test-${{ matrix.python-version }} -- --cov --cov-report=lcov:${{matrix.os}}-${{matrix.python-version}}.lcov --cov-report=term --cov-append --durations=20 | |
# - name: Coveralls Parallel | |
# uses: coverallsapp/github-action@v2 | |
# with: | |
# parallel: true | |
# github-token: ${{secrets.github_token}} | |
# flag-name: run-${{matrix.python-version}}-${{matrix.os}} | |
# file: "${{matrix.os}}-${{matrix.python-version}}.lcov" | |
# finish: | |
# name: "Finish Coveralls" | |
# needs: tests | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Coveralls Finished | |
# uses: coverallsapp/github-action@v2 | |
# with: | |
# github-token: ${{ secrets.github_token }} | |
# parallel-finished: true |