Introduce InInstruction and update existing logic #359
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |