Fix conditions

This commit is contained in:
evgfilim1 2022-08-22 12:58:33 +05:00
parent 1c5ce0eb77
commit 6a758f9817
No known key found for this signature in database
GPG key ID: D9F91B9DC64683A2

View file

@ -75,7 +75,7 @@ jobs:
- name: Install and configure Poetry
uses: snok/install-poetry@v1
if: "!env.IS_PYPY || !env.IS_WINDOWS"
if: "env.IS_PYPY == 'false' || env.IS_WINDOWS == 'false'"
with:
version: 1.1.11
virtualenvs-create: true
@ -83,8 +83,7 @@ jobs:
installer-parallel: true
- name: Install and configure Poetry (PyPy on Windows)
# Poetry installer raises an error on Windows PyPy, so it's a separate step
if: "env.IS_PYPY && env.IS_WINDOWS"
if: "env.IS_PYPY == 'true' && env.IS_WINDOWS == 'true'"
run: |
set -eu
pip install "poetry==1.1.11"
@ -93,7 +92,7 @@ jobs:
poetry config installer.parallel true
- name: Setup redis
if: ${{ !env.IS_WINDOWS }}
if: ${{ env.IS_WINDOWS == 'false' }}
uses: shogo82148/actions-setup-redis@v1
with:
redis-version: 6
@ -126,7 +125,7 @@ jobs:
poetry run pytest $flags
- name: Upload coverage data
if: "!env.IS_PYPY"
if: "env.IS_PYPY == 'false'"
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}