Exclude unsupported tests
Signed-off-by: Rafal Kapuscik <rkapuscik@antmicro.com>
This commit is contained in:
parent
c656a3a948
commit
c5f26a8c01
|
@ -19,6 +19,7 @@
|
|||
from sys import argv as sys_argv
|
||||
|
||||
isFork = len(sys_argv)>1 and sys_argv[1] != 'chipsalliance/f4pga-examples'
|
||||
usesSurelog = len(sys_argv)>2 and sys_argv[2] == 'Surelog'
|
||||
|
||||
runs_on = (
|
||||
'ubuntu-latest'
|
||||
|
@ -27,12 +28,7 @@ runs_on = (
|
|||
)
|
||||
|
||||
examples = [
|
||||
"picosoc",
|
||||
"litex",
|
||||
"litex_linux",
|
||||
"button_controller",
|
||||
"pulse_width_led",
|
||||
"timer",
|
||||
"hello-a",
|
||||
"hello-b",
|
||||
"hello-c",
|
||||
|
@ -43,10 +39,20 @@ examples = [
|
|||
"hello-h",
|
||||
"hello-i",
|
||||
"hello-j",
|
||||
"hello-k",
|
||||
"hello-l"
|
||||
]
|
||||
|
||||
# Skip tests that are currently unsupported
|
||||
if not usesSurelog:
|
||||
examples = [
|
||||
"litex",
|
||||
"picosoc",
|
||||
"litex_linux",
|
||||
"button_controller",
|
||||
"timer",
|
||||
"hello-k",
|
||||
"hello-l"
|
||||
] + examples
|
||||
|
||||
jobs = []
|
||||
|
||||
osvers = [
|
||||
|
@ -61,8 +67,14 @@ osvers = [
|
|||
if not isFork:
|
||||
examples = [
|
||||
"counter",
|
||||
"litex_sata",
|
||||
] + examples
|
||||
|
||||
# Skip tests that are currently unsupported
|
||||
if not usesSurelog:
|
||||
examples = [
|
||||
"litex_sata",
|
||||
] + examples
|
||||
|
||||
osvers += [
|
||||
("ubuntu", "xenial"),
|
||||
("ubuntu", "bionic"),
|
||||
|
|
|
@ -78,12 +78,26 @@ jobs:
|
|||
**/*.bit
|
||||
**/plot_*.svg
|
||||
|
||||
Matrix-Surelog:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
matrix: ${{ steps.generate.outputs.matrix }}
|
||||
|
||||
steps:
|
||||
|
||||
- name: Setup repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Generate examples matrix
|
||||
id: generate
|
||||
run: ./.github/scripts/generate_job_matrix.py '${{ github.repository }}' Surelog
|
||||
|
||||
Test-Surelog:
|
||||
needs: Matrix
|
||||
needs: Matrix-Surelog
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include: ${{ fromJson(needs.Matrix.outputs.matrix) }}
|
||||
include: ${{ fromJson(needs.Matrix-Surelog.outputs.matrix) }}
|
||||
runs-on: ${{ matrix.runs-on }}
|
||||
name: Surelog frontend - ${{ matrix.fpga-fam }} | ${{ matrix.os }} ${{ matrix.os-version }} | ${{ matrix.example }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue