fix: previous version and tag creation #218
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Action | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
jobs: | |
test-action: | |
runs-on: ubuntu-latest | |
name: Test the action | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Run the action | |
id: get-release-version | |
uses: ./ | |
with: | |
create-tag: "false" | |
- name: Print the outputs | |
run: | | |
echo "version=${{ steps.get-release-version.outputs.version }}" | |
echo "version-name=${{ steps.get-release-version.outputs.version-name }}" | |
echo "previous-version=${{ steps.get-release-version.outputs.previous-version }}" | |
echo "previous-version-name=${{ steps.get-release-version.outputs.previous-version-name }}" | |
echo "tag-created=${{ steps.get-release-version.outputs.tag-created }}" | |
run-tests: | |
runs-on: ubuntu-latest | |
name: Run E2E Tests | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: .github/actions/setup-python | |
- name: Run pytest | |
run: poetry run pytest --junit-xml test-result.xml tests | |
- name: Upload test results | |
if: always() | |
uses: pmeier/[email protected] | |
with: | |
path: test-result.xml | |
summary: true | |
display-options: fEX | |
fail-on-empty: true | |
title: E2E Test Results |