Skip to content

Update dependencies (#151) #338

Update dependencies (#151)

Update dependencies (#151) #338

Workflow file for this run

name: Package CI
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.10.15', '3.11.10', '3.12.7']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install coverage pytest anybadge
- name: Run tests
run: |
coverage run --source=pioemu -m pytest --tb=short tests/
- name: Coverage report
if: ${{ matrix.python-version == '3.12.7' }}
run: |
coverage json
- name: Update badges
if: ${{ matrix.python-version == '3.12.7' }}
run: |
python .github/make_badges.py
git config user.name github-actions
git config user.email [email protected]
git add docs/images/*
git diff-index --quiet HEAD || git commit -m "Update badges"
git push