diff options
author | Dominik Holland <dominik.holland@qt.io> | 2022-04-06 13:35:12 +0200 |
---|---|---|
committer | Dominik Holland <dominik.holland@googlemail.com> | 2022-04-06 13:48:41 +0200 |
commit | 9e454313697aad2d1001efa32d1fac33f6c5b660 (patch) | |
tree | 1baf50b58d1957ce61433407b6017d752ff8899d | |
parent | c1721567a52e6ff0666b66aa85c048744c813c23 (diff) | |
download | qtivi-qface-9e454313697aad2d1001efa32d1fac33f6c5b660.tar.gz |
CI: Only report deprecation errors when testing the 'latest' packages
-rw-r--r-- | .github/workflows/python-package.yml | 6 | ||||
-rw-r--r-- | .github/workflows/release.yml | 6 | ||||
-rw-r--r-- | .github/workflows/weekly.yml | 6 |
3 files changed, 15 insertions, 3 deletions
diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index d2c7511..31ad5bc 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -42,7 +42,11 @@ jobs: #flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - python -m pytest -v -s -l -W error::DeprecationWarning + if [ ${{ matrix.dependencies }} == "latest" ]; then + python -m pytest -v -s -l -W error::DeprecationWarning + else + python -m pytest -v -s -l + fi upload: needs: [ build ] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f274816..4a435c6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,7 +43,11 @@ jobs: #flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - python -m pytest -v -s -l -W error::DeprecationWarning + if [ ${{ matrix.dependencies }} == "latest" ]; then + python -m pytest -v -s -l -W error::DeprecationWarning + else + python -m pytest -v -s -l + fi upload: needs: [ build ] diff --git a/.github/workflows/weekly.yml b/.github/workflows/weekly.yml index fd974b9..207538a 100644 --- a/.github/workflows/weekly.yml +++ b/.github/workflows/weekly.yml @@ -37,4 +37,8 @@ jobs: fi - name: Test with pytest run: | - python -m pytest -v -s -l -W error::DeprecationWarning + if [ ${{ matrix.dependencies }} == "latest" ]; then + python -m pytest -v -s -l -W error::DeprecationWarning + else + python -m pytest -v -s -l + fi |