Skip to content

Commit

Permalink
migrage github to new run.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Aug 30, 2024
1 parent e5e9856 commit 6c1e51b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@ jobs:

- name: Run Test
uses: ./sipssert/actions/Run_Test
with:
test_set: ${{ matrix.test_set }}
11 changes: 6 additions & 5 deletions actions/Run_Test/action.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
name: 'Run Test'
description: 'Runs specific test, resolves the logs path, and uploads the logs'
inputs:
test_set:
description: "Name of the Test Set to run"
required: true
config:
description: "run.yml file"
required: false
default: run.yml
runs:
using: 'composite'
steps:
- name: Run All Tests
run: |
cd tests
SETS=${{ inputs.test_set }} sh -x ./run-all.sh
sipssert -c run.yml ${{ inputs.tests }}
shell: bash

- name: Publish logs
if: always()
uses: ./sipssert/actions/Publish_Logs
with:
log_name: sipssert-${{ inputs.test_set }}-logs
log_name: sipssert-${{ inputs.tests }}-logs
2 changes: 1 addition & 1 deletion actions/Set_Matrix/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ runs:
id: set-matrix
run: |
echo "Reading YAML file to create matrix"
MATRIX=$(python3 sipssert/actions/read_matrix.py tests/environment.yml)
MATRIX=$(python3 sipssert/actions/read_matrix.py tests/run.yml)
echo "matrix=${MATRIX}" >> $GITHUB_OUTPUT
shell: bash
4 changes: 2 additions & 2 deletions actions/read_matrix.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Filters the OS and tests_set from the matrix file"""
"""Filters the OS and tests from the matrix file"""
import sys
import json
import yaml

matrix_keys = [ "os", "test_set" ]
matrix_keys = [ "os", "tests" ]

matrix_dict = yaml.safe_load(open(sys.argv[1], encoding="utf-8"))

Expand Down

0 comments on commit 6c1e51b

Please sign in to comment.