Skip to content

Fix GitHub Actions and update Changelog #60

Fix GitHub Actions and update Changelog

Fix GitHub Actions and update Changelog #60

Workflow file for this run

name: Linter
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: linter-${{ github.head_ref }}
cancel-in-progress: true
jobs:
check:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.8]
steps:
- name: Checking out repo
uses: actions/checkout@v2
- name: Check if python changes are present
id: check
env:
GITHUB_REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
continue-on-error: true
run: ./scripts/ci_check_no_file_changes.sh python
- name: Set up Python ${{ matrix.python-version }}
if: steps.check.outcome == 'failure'
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dev environment
if: steps.check.outcome == 'failure'
run: make dev
- name: Flake8
if: steps.check.outcome == 'failure'
run: make flake8
- name: Black
if: steps.check.outcome == 'failure'
run: make black