diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/python-app.yml | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index b23198d..281a4b7 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -15,28 +15,22 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.5, 3.6, 3.7, 3.8, 3.9] + python-version: ["3.5", "3.6", "3.7", "3.8", "3.9", "3.10"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest pytest-cov codecov + pip install codecov flake8 pytest pytest-cov if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - flake8 sqlparse --count --select=E9,F63,F7,F82 --show-source --statistics - # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 sqlparse --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + run: flake8 sqlparse --count --max-complexity=31 --max-line-length=88 --show-source --statistics - name: Test with pytest - run: | - pytest --cov=sqlparse + run: pytest --cov=sqlparse - name: Publish to codecov - run: | - codecov + run: codecov |
