Bump version #18
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: main | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ vars.PYTHON_VERSION }} | |
- name: Install build tools | |
run: | | |
python -m pip install --upgrade pip pre-commit setuptools tox | |
- name: Run pre-commit | |
run: | | |
pre-commit run --all-files | |
- name: Run tox tests | |
run: | | |
tox | |
- name: Coverage Badge | |
uses: tj-actions/coverage-badge-py@v2 | |
if: success() && github.ref == 'refs/heads/master' | |
- name: Verify Changed files | |
uses: tj-actions/verify-changed-files@v13 | |
if: success() && github.ref == 'refs/heads/master' | |
id: verify-changed-files | |
with: | |
files: coverage.svg | |
- name: Commit files | |
if: steps.verify-changed-files.outputs.files_changed == 'true' && success() && github.ref == 'refs/heads/master' | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add coverage.svg | |
git commit -m "Updated coverage.svg" | |
- name: Push changes | |
if: steps.verify-changed-files.outputs.files_changed == 'true' && success() && github.ref == 'refs/heads/master' | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |