Skip to content

AP news dataset and sample notebooks (#2) #7

AP news dataset and sample notebooks (#2)

AP news dataset and sample notebooks (#2) #7

Workflow file for this run

name: Python CI
on:
push:
branches:
- "**/main" # match branches like feature/main
- "main" # match the main branch
- "preview" # match the preview branch
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
branches:
- "**/main"
- "main"
- "preview" # match the preview branch
paths-ignore:
- "**/*.md"
- ".semversioner/**"
permissions:
contents: read
pull-requests: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
# Only run the for the latest commit
cancel-in-progress: true
env:
UV_VERSION: 0.6.17
jobs:
docs_build:
runs-on: ubuntu-latest
env:
PYTHON_VERSION: '3.12'
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ env.PYTHON_VERSION}}
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION}}
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
version: ${{ env.UV_VERSION }}
- name: Install Dependencies
run: uv sync --locked --all-packages
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11', '3.12']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
version: ${{ env.UV_VERSION }}
- name: Install Dependencies
run: uv sync --locked --all-packages
- name: benchmark-qed - Check
run: |
uv run poe check