-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GHA: refactor repeating steps in pipeline
- Loading branch information
Showing
2 changed files
with
116 additions
and
63 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: 'Run tests' | ||
inputs: | ||
python-version: | ||
required: true | ||
rf-version: | ||
required: true | ||
shell-var: | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
cache: 'pip' | ||
- name: Install dependencies | ||
shell: ${{ inputs.shell-var }} | ||
run: | | ||
pip install -r requirements.txt | ||
pip install robotframework==${{ inputs.rf-version }} | ||
- name: Run tests | ||
shell: ${{ inputs.shell-var }} | ||
run: | | ||
invoke test |
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