mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-12 01:18:31 +02:00
change how we check if deps are installed so test don't run wild
This commit is contained in:
parent
701758eb8c
commit
6ecd1b81a1
1 changed files with 5 additions and 2 deletions
7
.github/workflows/testing.yaml
vendored
7
.github/workflows/testing.yaml
vendored
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue