Skip to content

fix(intel): prefer exact Go evidence in language guess, export language #329

fix(intel): prefer exact Go evidence in language guess, export language

fix(intel): prefer exact Go evidence in language guess, export language #329

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
lint:
name: Code Quality
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.11"
cache: pip
cache-dependency-path: pyproject.toml
- name: Install lint dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ruff
- name: Run ruff linting
run: python -m ruff check .
- name: Run ruff formatting check
run: python -m ruff format --check .
test:
name: Tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
timeout-minutes: 30
# 3.14 is pre-release; report but do not block PRs on it.
continue-on-error: ${{ matrix.python-version == '3.14' }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: Run tests
run: python -m pytest tests/test*
mcrit-install:
name: MCRIT install (${{ matrix.os }}, Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
timeout-minutes: 45
# 3.14 is pre-release; report but do not block PRs on it.
continue-on-error: ${{ matrix.python-version == '3.14' }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
exclude:
- os: windows-latest
python-version: "3.11"
- os: windows-latest
python-version: "3.12"
- os: windows-latest
python-version: "3.13"
- os: macos-latest
python-version: "3.11"
- os: macos-latest
python-version: "3.12"
- os: macos-latest
python-version: "3.13"
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: pip
cache-dependency-path: pyproject.toml
- name: Install SMDA and MCRIT
run: |
python -m pip install --upgrade pip
python -m pip install -e .
python -m pip install mcrit
- name: Verify MCRIT imports with this SMDA checkout
run: |
python -c "import importlib.metadata; import mcrit; import smda; from smda.common.SmdaFunction import SmdaFunction; print(f'mcrit={importlib.metadata.version(\"mcrit\")}'); print(f'smda={importlib.metadata.version(\"smda\")}'); print(f'smda_module={smda.__file__}'); print(f'mcrit_module={mcrit.__file__}'); print(f'smda_function={SmdaFunction.__name__}')"