Skip to content

Commit

Permalink
Update spec files #26 WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dvershinin committed Jul 14, 2021
1 parent 4420541 commit c7144c4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
File renamed without changes.
26 changes: 13 additions & 13 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,19 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -e .[tests]
- name: Update spec
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
exit || pytest -v -n auto
env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update .spec files
run: |
# ensure changelog is generated
echo "%packager Dick Solomon <info@example.com>" >> ~/.rpmmacros
Expand All @@ -42,18 +54,6 @@ jobs:
with:
name: nginx-module-immutable.spec
path: tests/nginx-module-immutable.spec
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
exit || pytest -v -n auto
env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-brotli-rpm:
needs: build
runs-on: ubuntu-latest
Expand Down

0 comments on commit c7144c4

Please sign in to comment.