Bump to 0.61.0. #32
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: Coverage | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
generate-coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Set up Python 3.11 | |
uses: actions/[email protected] | |
with: | |
python-version: "3.11" | |
- name: Install Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.6.1 | |
- name: Set Poetry config | |
run: | | |
poetry config virtualenvs.path ~/.virtualenvs3.11 | |
- name: Install dependencies | |
run: poetry install -E minify | |
- name: Generate coverage badge | |
run: | | |
chmod +x generate_badge.sh | |
./generate_badge.sh | |
- name: Commit and push coverage badge | |
continue-on-error: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git checkout -b py-code-coverage || git checkout py-code-coverage | |
git pull origin py-code-coverage | |
git add . | |
git commit -m "Update coverage badge" | |
git push --force origin py-code-coverage |