Skip to content

feat: README Badges and Execexam Logo #3

feat: README Badges and Execexam Logo

feat: README Badges and Execexam Logo #3

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run tests and generate coverage
run: |
poetry run pytest -s --cov=my_package --cov-report json:coverage.json
- name: Generate coverage and version badges
run: |
poetry run python badges.py
- name: Commit badge
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add README.md
git commit -m "Update coverage and version badges"
git push
name: CI

Check failure on line 44 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 44
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12.3'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run tests and generate coverage
run: |
poetry run pytest -s --cov=my_package --cov-report json:coverage.json
- name: Generate coverage and version badges
run: |
poetry run python badges.py
- name: Commit badge
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add README.md
git commit -m "Update coverage and version badges"
git push