diff --git a/.github/workflows/continuous_delivery.yml b/.github/workflows/continuous_delivery.yml index 1a822a5..32a5bb8 100644 --- a/.github/workflows/continuous_delivery.yml +++ b/.github/workflows/continuous_delivery.yml @@ -12,9 +12,6 @@ jobs: fail-fast: false matrix: python-version: [ 3.8, 3.9 ] - include: - - python-version: 3.8 - enable_publish: true # Publish only for python 3.8 steps: - name: Checkout repository @@ -32,6 +29,13 @@ jobs: - name: Install project dependencies with Poetry run: | poetry install + - name: Style check + run: | + # run pre-commit hooks + poetry run pre-commit run --all-files + - name: Run tests + run: | + poetry run pytest -vv -k 'not time and not update_parallel' - name: Extract version from pyproject.toml id: extract_version run: | @@ -46,7 +50,7 @@ jobs: fi - name: Verify whether to publish run: | - if ! (( ${{ matrix.enable_publish }} )) || [ "${{ steps.version_check.outcome }}" != "success" ]; then + if ! (( ${{ matrix.python-version }} == '3.8' )) || [ "${{ steps.version_check.outcome }}" != "success" ]; then exit 0 fi - name: Build and publish to pypi