change how we check if deps are installed so test don't run wild

This commit is contained in:
Jonathan Wren 2021-07-08 01:03:34 -07:00
parent 701758eb8c
commit 6ecd1b81a1

View file

@ -57,6 +57,8 @@ jobs:
poetry install --remove-untracked poetry install --remove-untracked
echo '::endgroup::' echo '::endgroup::'
echo 'DEPS_INSTALLED=true' >> $GITHUB_ENV
- name: Install dependencies (Prerelease) - name: Install dependencies (Prerelease)
if: ${{ matrix.python-version == '3.10-dev' }} if: ${{ matrix.python-version == '3.10-dev' }}
@ -70,15 +72,16 @@ jobs:
poetry install --remove-untracked --no-dev --extras testing poetry install --remove-untracked --no-dev --extras testing
echo '::endgroup::' echo '::endgroup::'
echo 'DEPS_INSTALLED=true' >> $GITHUB_ENV
- name: Code formatting (Black) - name: Code formatting (Black)
if: ${{ matrix.python-version != '3.10-dev' }} && (success() || failure()) if: ${{ matrix.python-version != '3.10-dev' && env.DEPS_INSTALLED == 'true' }}
run: | run: |
poetry run black --version poetry run black --version
poetry run black --check --diff . poetry run black --check --diff .
- name: Code Style (flake8) - name: Code Style (flake8)
if: ${{ matrix.python-version != '3.10-dev' }} && (success() || failure()) if: ${{ matrix.python-version != '3.10-dev' && env.DEPS_INSTALLED == 'true' }}
run: | run: |
poetry run pflake8 --version poetry run pflake8 --version
poetry run pflake8 jrnl features tests poetry run pflake8 jrnl features tests