Skip to content

fix: CITATION.cff doi field stale at v3.2.4 exact-release DOI #383

fix: CITATION.cff doi field stale at v3.2.4 exact-release DOI

fix: CITATION.cff doi field stale at v3.2.4 exact-release DOI #383

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
secrets:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Install gitleaks
shell: bash
run: |
set -euo pipefail
version="8.30.0"
curl -sSL "https://github.com/gitleaks/gitleaks/releases/download/v${version}/gitleaks_${version}_linux_x64.tar.gz" -o /tmp/gitleaks.tar.gz
tar -xzf /tmp/gitleaks.tar.gz -C /tmp gitleaks
sudo mv /tmp/gitleaks /usr/local/bin/gitleaks
gitleaks version
- name: Secret scan
run: gitleaks detect --source . --verbose --redact
test:
needs: secrets
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Security audit
if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
run: |
pip install --upgrade pip
pip install pip-audit
pip-audit
- name: Public surface audit
if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
run: python scripts/audit_public_surface.py
- name: CHANGELOG duplicate-Unreleased-header check
if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
shell: bash
run: |
# release.py removes the [Unreleased] header on tagging (renamed to the new
# version) and does not add a fresh one back, so 0 is a normal post-release
# state. Only 2+ is the actual defect: a stray unbracketed
# "## Unreleased" coexisting with the bracketed one, or a literal duplicate.
count=$(grep -c '^## \[Unreleased\]' CHANGELOG.md || true)
if [ "$count" -gt 1 ]; then
echo "Found $count '## [Unreleased]' headers in CHANGELOG.md, expected at most 1."
exit 1
fi
- name: Run tests
run: pytest tests/ -v --tb=short --cov=src/factorforge --cov-report=xml --cov-report=term-missing
- name: Upload coverage to Codecov
if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v7
with:
files: ./coverage.xml
fail_ci_if_error: false