[HWORKS-791] Add Python API support to schedule jobs #374
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: python | |
on: pull_request | |
env: | |
APP_API_KEY: ${{ secrets.APP_API_KEY }} | |
jobs: | |
lint_stylecheck: | |
name: Lint and Stylecheck | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: install deps | |
run: pip install flake8==3.9.0 black==22.3.0 pre-commit-hooks==2.4.0 | |
- name: black | |
run: black --check python | |
- name: flake8 | |
run: flake8 --config python/.flake8 python | |
- name: trailing-whitespace-fixer | |
run: trailing-whitespace-fixer $(find python -name "*.py" -type f) || exit 1 | |
- name: end-of-file-fixer | |
run: end-of-file-fixer $(find python -name "*.py" -type f) || exit 1 |