Merge pull request #112 from siddhantgoel/dependabot/pip/taskipy-1.14.0 #263
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: flask-filealchemy | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up poetry | |
run: | | |
python -m pip install --upgrade poetry | |
poetry run pip install --upgrade pip setuptools | |
- name: Install dependencies | |
run: poetry install | |
- name: Lint with flake8 | |
run: poetry run task lint-flake8 | |
- name: Lint with black | |
run: poetry run task lint-black | |
- name: Test with pytest | |
run: poetry run task test |