Test against Cogent3 develop branch #107
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: "Test against Cogent3 develop branch" | |
on: | |
schedule: | |
- cron: '0 21 * * *' # 7am AEST | |
workflow_dispatch: # support for manual triggering | |
jobs: | |
cogent3-dev: | |
name: "cogent3-dev" | |
runs-on: ubuntu-latest | |
if: github.repository == 'HuttleyLab/MutationMotif' | |
steps: | |
- uses: "actions/checkout@v4" | |
with: | |
fetch-depth: 0 | |
- uses: "actions/setup-python@v5" | |
with: | |
python-version: "3.12" | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
with: | |
enable-cache: true | |
- name: Install the cogent3 dev branch | |
run: | | |
uv pip install "cogent3 @ git+https://github.com/cogent3/cogent3.git@develop" --system | |
- name: Install the project | |
run: | | |
uv pip install ".[test]" --system | |
- name: Run tests | |
run: uv run pytest tests |