Bump actions/checkout from 4 to 7 #3
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: | |
| branches: ["main"] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| data-pipeline: | |
| name: Data pipeline | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - run: uv sync --frozen --all-groups | |
| - run: uv run ruff check src tests scripts | |
| - run: uv run ruff format --check scripts/check_public_release.py scripts/export_public_research_snapshot.py | |
| - run: uv run pytest -q | |
| - run: uv run python scripts/check_public_release.py | |
| - run: uv build --out-dir /tmp/multifactor-ashare-dist | |
| autoalpha: | |
| name: AutoAlpha platform | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| defaults: | |
| run: | |
| working-directory: AutoAlpha | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: AutoAlpha/uv.lock | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - run: uv sync --frozen --all-groups | |
| - run: uv run ruff check . | |
| - run: uv run pytest -q | |
| - run: uv build --out-dir /tmp/autoalpha-dist |