Skip to content

Commit

Permalink
Run stricter builds in the build job
Browse files Browse the repository at this point in the history
  • Loading branch information
pganssle committed May 4, 2020
1 parent 65644ac commit 92623d3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,18 @@ jobs:
run: python -m pip install --upgrade pip tox
- name: Run action
run: |
if [[ $TOXENV == "docs" ]]; then
if [[ $TOXENV == "build" ]]; then
CFLAGS="-std=c99"
CFLAGS+=" -Wall"
CFLAGS+=" -Werror"
CFLAGS+=" -Wextra"
CFLAGS+=" -Wno-unused-result"
CFLAGS+=" -Wno-unused-parameter"
CFLAGS+=" -Wno-missing-field-initializers"
export CFLAGS="${CFLAGS}"
fi
if [[ $TOXENV == "docs" ]]; then
tox -- -j auto -bhtml -W -n -a --keep-going
else
tox
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ commands =
[testenv:build]
description = Build a wheel and source distribution
skip_install = True
passenv = CFLAGS
deps =
pep517
twine
Expand Down

0 comments on commit 92623d3

Please sign in to comment.