diff options
| author | Christian Clauss <cclauss@me.com> | 2022-04-29 09:38:14 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2022-08-07 09:02:01 +0200 |
| commit | 538eea5a9e2f8d487cfc2d900310a98507cf2b37 (patch) | |
| tree | 8345b7cdb75f6e537a8c67d42b97ee5073f4b523 | |
| parent | 6c409fc1fa5e9ed0913220f5af81770498124df1 (diff) | |
| download | sqlparse-538eea5a9e2f8d487cfc2d900310a98507cf2b37.tar.gz | |
GitHub Actions: Add Py3.10, update Actions, more flake8 tests
"3.10" must be quoted in yaml https://dev.to/hugovk/the-python-3-1-problem-85g
| -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 |
