Bump jsonschema from 4.19.1 to 4.19.2 #350
Workflow file for this run
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: Dr Header Pull Request handler | |
on: pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- name: Checkout Code | |
uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install PIP Dependencies | |
run: | | |
pip install -r requirements.txt | |
pip install -r requirements_dev.txt | |
- name: Run unit tests | |
env: | |
version: ${{ matrix.python-version }} | |
run: tox run -e py$version -- --junitxml $version.results.xml | |
- name: Upload test results | |
uses: actions/upload-artifact@master | |
with: | |
name: Results - ${{ matrix.python-version }} | |
path: ${{ matrix.python-version }}.results.xml | |
- name: Run lint scan | |
run: tox run -e lint | |
- name: Run SAST scan | |
run: tox run -e sast | |
- name: Run SCA scan | |
run: tox run -e sca | |
- name: Checkout origin branch if PR 'to-branch' is master | |
if: github.base_ref == 'master' | |
uses: actions/[email protected] | |
with: | |
ref: ${{ github.head_ref }} | |
- name: BumpVersion if PR 'to-branch' is master | |
if: github.base_ref == 'master' | |
run: | | |
grep -i 'current_version = ' setup.cfg | head -1 | tr -d 'current_version = ' | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
bump2version minor | |
grep -i 'current_version = ' setup.cfg | head -1 | tr -d 'current_version = ' | |
- name: Push changes if PR 'to-branch' is master | |
if: github.base_ref == 'master' | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.head_ref }} |