Allow all Python 3 versions ≥ 3.7 to install Promptsource (#854) #2746
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: check_code_quality | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.7' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install black isort flake8 | |
- run: black --check --line-length 119 --target-version py38 promptsource | |
- run: isort --check-only promptsource | |
- run: flake8 promptsource --max-line-length 119 --per-file-ignores="__init__.py:F401" |