Skip to content

Commit

Permalink
Update continuous_delivery.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharbar1 authored Aug 21, 2024
1 parent ddf2bb2 commit b2db3b9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/continuous_delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit b2db3b9

Please sign in to comment.