Fix/managed policies #610
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: Static Checking | |
on: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main", "release/*", "stable", "wip/*" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
seedfarmer-cli: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9,3.10.13] | |
defaults: | |
run: | |
working-directory: . | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Requirements | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r requirements-dev.txt | |
pip install -e . | |
- name: Mypy Check | |
run: mypy --ignore-missing-imports ./seedfarmer | |
- name: Flake8 Check | |
run: flake8 ./seedfarmer | |
- name: Black Check | |
run: black --check ./seedfarmer | |
- name: Isort Check | |
run: isort --check ./seedfarmer | |
- name: PyTest | |
run: cp test/unit-test/mock_data/seedfarmer.yaml . && pytest |