Skip to content

build(deps): bump codecov/codecov-action from 5.5.3 to 6.0.0 (#3) #32

build(deps): bump codecov/codecov-action from 5.5.3 to 6.0.0 (#3)

build(deps): bump codecov/codecov-action from 5.5.3 to 6.0.0 (#3) #32

Workflow file for this run

name: CI
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
env:
UV_VERSION: "0.9.4"
permissions: {}
jobs:
prek:
runs-on: ubuntu-latest
name: Prek hooks (lint/format/spell/type, all files)
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version-file: "pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@b75dde52aef63a238519e7aecbbe79a4a52e4315 # v7
with:
enable-cache: true
version: ${{ env.UV_VERSION }}
- name: Install dependencies
run: uv sync --all-groups
- name: Run prek
run: uv run prek run --show-diff-on-failure --color=always --all-files --hook-stage pre-push
pytest:
name: Tests ${{ matrix.os }} / py${{ matrix.python }}
needs: [prek]
runs-on: ${{ matrix.os }}
permissions:
contents: read
id-token: write
environment: codecov
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python: ["3.11", "3.12", "3.13", "3.14"]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@b75dde52aef63a238519e7aecbbe79a4a52e4315 # v7
with:
enable-cache: true
version: ${{ env.UV_VERSION }}
- name: Set up Python ${{ matrix.python }}
run: uv python install ${{ matrix.python }}
- name: Install dependencies
run: uv sync --all-groups
- name: Running package tests
run: |
uv run pytest --cov --cov-report=xml --cov-fail-under=90
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
use_oidc: true
slug: NatLabRockies/r2x-sienna
package:
name: Package smoke test
needs: pytest
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version-file: "pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@b75dde52aef63a238519e7aecbbe79a4a52e4315 # v7
with:
version: ${{ env.UV_VERSION }}
enable-cache: true
- name: Install dependencies
run: uv sync --all-groups
- name: Build and install wheel
run: |
uv build
python -m venv pkgtest
source pkgtest/bin/activate
python -m pip install --upgrade pip
python -m pip install dist/*.whl
python -c "import r2x_sienna as m; print(getattr(m, '__version__', 'OK'))"