diff options
Diffstat (limited to '.github/workflows/pythonpackage.yml')
-rw-r--r-- | .github/workflows/pythonpackage.yml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 755937a..5b1fa0e 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -1,12 +1,14 @@ -name: Test Package +name: build on: push: branches: - - master - pull_request: + - '**' + create: branches: - - master + - 'master' + tags: + - '**' jobs: linux: @@ -34,7 +36,7 @@ jobs: # 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 + flake8 examples/ ot/ test/ --count --max-line-length=127 --statistics - name: Install POT run: | pip install -e . @@ -97,3 +99,4 @@ jobs: - name: Run tests run: | python -m pytest -v test/ ot/ --doctest-modules --ignore ot/gpu/ --cov=ot +=ot |