Skip to content

Update __version__.py #254

Update __version__.py

Update __version__.py #254

Workflow file for this run

name: pytest
on:
push:
branches: [main]
jobs:
pytest:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install liesel
run: |
pip install .[dev]
pip list
- name: Run pytest
run: pytest --cov=liesel --run-mcmc
- name: Create coverage badge
uses: tj-actions/coverage-badge-py@v2
with:
output: coverage-new.svg
- name: Commit coverage.svg
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git ls-remote | grep refs/heads/pytest-cov && git remote set-branches --add origin pytest-cov && git fetch
git switch pytest-cov || git switch --orphan pytest-cov
mv coverage-new.svg coverage.svg
git add coverage.svg
git diff --staged --quiet || git commit -m "Updated coverage.svg"
- name: Push coverage.svg
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: pytest-cov