Add build_hybrid_population_dynamic to __init__.py (#25) #114
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Conda | |
| uses: s-weigand/setup-conda@v1 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Set up Python | |
| run: uv python install | |
| - name: Run tests | |
| run: | | |
| uv run pytest tests | |
| uv run pytest --doctest-glob="*.md" docs | |
| - name: Run ruff | |
| run: | | |
| uv run ruff check | |
| uv run ruff format --preview --check docs | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| - run: uv sync --group docs | |
| - run: uv run mkdocs build --strict | |
| docs-deploy: | |
| runs-on: ubuntu-latest | |
| needs: [test, docs] | |
| if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| - run: uv sync --group docs | |
| - run: uv run mkdocs gh-deploy --force |