mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix conditions
This commit is contained in:
parent
1c5ce0eb77
commit
6a758f9817
1 changed files with 4 additions and 5 deletions
9
.github/workflows/tests.yml
vendored
9
.github/workflows/tests.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue