Skip to content

Update package version #69

Update package version

Update package version #69

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
jobs:
Test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
uv pip install -e ".[dev, docs]" --system
- name: Run tests with coverage
run: make test
- name: Save calibration log
uses: actions/upload-artifact@v4
with:
name: calibration_log.csv
path: calibration_log.csv
- name: Upload calibration log
if: always() # even if tests fail
uses: actions/upload-artifact@v4
with:
name: calibration-log-${{ github.sha }}
path: microcalibration-dashboard/public/calibration_log.csv
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
fail_ci_if_error: false
verbose: true
- name: Test documentation builds
run: make documentation
- name: Check documentation build
run: |
for notebook in $(find docs/_build/jupyter_execute -name "*.ipynb"); do
if grep -q '"output_type": "error"' "$notebook"; then
echo "Error found in $notebook"
cat "$notebook"
exit 1
fi
done
- name: Deploy documentation
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/_build/html # The folder the action should deploy.