Skip to content

Merge pull request #24 from allen91wu/dependabot/pip/jinja2-3.1.3 #17

Merge pull request #24 from allen91wu/dependabot/pip/jinja2-3.1.3

Merge pull request #24 from allen91wu/dependabot/pip/jinja2-3.1.3 #17

Workflow file for this run

name: main branch updated
on:
push:
branches:
- main
jobs:
check:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@main
with:
fetch-depth: 0
- name: Set up Python 3.8
uses: actions/setup-python@main
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install -U pip pipenv invoke
inv env.init-dev --no-pre-commit
- name: Style check
run: |
inv style
- name: Check vulnerability
run: |
inv secure
- name: Run tests
run: |
inv test -a
bump-version:
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
name: "Bump version and create changelog with commitizen"
steps:
- name: Check out
uses: actions/checkout@main
with:
fetch-depth: 0
- name: Check out
uses: actions/checkout@v2
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
fetch-depth: 0
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
branch: main