Skip to content

Commit

Permalink
Merge pull request #1 from devops-42/fix-poetry-build
Browse files Browse the repository at this point in the history
Fixed actions pipeline for python
  • Loading branch information
holgerstolzenberg authored Nov 21, 2024
2 parents c0dcca1 + 412c1a1 commit 01f2426
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/actions/python-client/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,24 @@ runs:
working-directory: 'python-client'
shell: bash
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test-requirements.txt
- name: Install the code linting and formatting tool Ruff
python -m pip install --upgrade pip pipx
pipx install poetry
- name: Setup poetry project
shell: bash
run: pipx install ruff
run: |
poetry install --all-extras
- name: Code linting and formatting tool using Ruff
shell: bash
run: |
poetry run ruff check . --fix
- name: Check code formatting with Ruff
shell: bash
run: ruff format --target-version=py39
run: |
poetry run ruff format --check --target-version py39
continue-on-error: true
- name: "Run tests"
working-directory: 'python-client'
shell: bash
# Run tox using the version of Python in `PATH`
#run: tox -e py
run: pytest test/test_*.py
run: |
poetry run tox -e py

0 comments on commit 01f2426

Please sign in to comment.