Skip to content

Commit

Permalink
worflow/test debug shell commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mahiki committed Jul 22, 2024
1 parent fc736bd commit 2ae56cc
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,31 @@ jobs:
with:
python-version: '3.11'

- run: python --version
- run: pipx install --python $(which python) poetry
- run: poetry install
- run: poetry show --latest
- run: poetry run pytest --disable-warnings --verbose
- run: |
echo "REMINDER: Warnings are disabled"
- name: Install Poetry
run: |
python --version
pipx install --python $(which python) poetry
poetry install
poetry show --latest
- name: Poetry Run Pytest
run: |
poetry run pytest --disable-warnings --verbose
echo "WARNING: Pytest Warnings are disabled"
- name: Get latest tag
- name: Get Latest Tag
id: get_tag
run: |
latest_tag="git ls-remote origin 'refs/tags/v*[0-9]'' | awk -F'refs/tags/' '{print $2}'"
latest_tag="git ls-remote origin 'refs/tags/v*[0-9]' | awk -F'refs/tags/' '{print $2}'"
echo latest_tag="${latest_tag}" >> $GITHUB_OUTPUT
- name: Get Poetry application version
- name: Get Poetry Version
id: app_version
run: |
poetry_app_version="$(poetry version --short)"
echo poetry_app_version="v${poetry_app_version}" >> $GITHUB_OUTPUT
- name: Print some workflow contexts
- name: REFERENCE - Variables and Workflow Contexts
run: |
echo "workflow: ${{ github.workflow }}"
echo "job_id: ${{ github.job }}"
Expand Down

0 comments on commit 2ae56cc

Please sign in to comment.