Merge pull request #23 from openstates/alex-bump-openstates #194
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: Test/Validate | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: check out code | |
uses: actions/checkout@v3 | |
# Python dependencies | |
- name: setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
#- name: install Poetry | |
# uses: snok/[email protected] | |
#- name: cache Poetry virtualenv | |
# uses: actions/cache@v2 | |
# id: poetry-cache | |
# with: | |
# path: ~/.virtualenvs/ | |
# key: poetry-${{ hashFiles('**/poetry.lock') }} | |
# restore-keys: | | |
# poetry-${{ hashFiles('**/poetry.lock') }} | |
#- name: set poetry config path | |
# run: poetry config virtualenvs.path ~/.virtualenvs | |
#- name: install python dependencies | |
# run: poetry install | |
- name: install needed deps | |
run: pip install black flake8 | |
- name: lint with black | |
# run: poetry run black --diff --check . | |
run: black --diff --check . | |
- name: lint with flake8 | |
# run: poetry run flake8 api --show-source --statistics | |
run: flake8 --show-source --statistics . |