Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 committed Aug 4, 2023
1 parent f4a80c6 commit ecd4c22
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 38 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/global.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: global
on:
pull_request:
paths:
- '!docs/**'
release:
types: [ published ]
jobs:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: markdown
on:
pull_request:
paths:
- '.github/workflows/markdown.yml'
- '.github/markdownlint.json'
- '.github/markdownlint.jsonc'
- '**/*.md'
jobs:
markdown-lint:
name: Lint markdown files
runs-on: ubuntu-22.04
steps:
- name: Checkout devtools
uses: actions/checkout@v3

- name: Register markdownlint warning matcher
run: |
echo "::add-matcher::.github/markdownlint.json"
- name: Lint markdown files
uses: avto-dev/markdown-lint@v1
with:
args: '**/*.md'
ignore: '**/testinput/**'
config: '.github/markdownlint.jsonc'

- name: Remove markdownlint warning matcher
if: always()
run: |
echo "::remove-matcher owner=markdownlint::"
- uses: gaurav-nelson/github-action-markdown-link-check@master
if: always()
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
check-modified-files-only: 'yes'
base-branch: ${{ github.base_ref }}
config-file: '.github/markdown-link-check.jsonc'
40 changes: 4 additions & 36 deletions .github/workflows/toolbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,48 +293,16 @@ jobs:
needs: [ tests ]
runs-on: ubuntu-latest
steps:
- name: Download test report windows-amd64
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
name: toolbox-test-windows-amd64
path: testreports/

- name: Download test report windows-arm64
uses: actions/download-artifact@v3
with:
name: toolbox-test-windows-arm64
path: testreports/

- name: Download unit test report linux-amd64
uses: actions/download-artifact@v3
with:
name: toolbox-test-linux-amd64
path: testreports/

- name: Download unit test report linux-arm64
uses: actions/download-artifact@v3
with:
name: toolbox-test-linux-arm64
path: testreports/

- name: Download unit test report darwin-amd64
uses: actions/download-artifact@v3
with:
name: toolbox-test-darwin-amd64
path: testreports/

- name: Download unit test report darwin-arm64
uses: actions/download-artifact@v3
with:
name: toolbox-test-darwin-arm64
path: testreports/
path: artifacts

- name: publish test results
uses: EnricoMi/publish-unit-test-result-action/composite@v2
uses: EnricoMi/publish-unit-test-result-action@v2
with:
commit: ${{ github.event.workflow_run.head_sha }}
files: "artifacts/**/test-results-*.xml"
report_individual_runs: true
junit_files: "testreports/*.xml"

release:
if: ${{ github.event_name == 'release' }}
Expand Down
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ repos:
entry: python3 scripts/check_copyright_notice.py
language: system
files: ^(libs\/|tools\/)
types_or: [c++, c, shell]

types_or: [python, shell]
6 changes: 6 additions & 0 deletions test/conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# -------------------------------------------------------
# Copyright (c) 2023 Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
# -------------------------------------------------------

import pytest

def pytest_addoption(parser):
Expand Down
6 changes: 6 additions & 0 deletions test/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# -------------------------------------------------------
# Copyright (c) 2023 Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: Apache-2.0
# -------------------------------------------------------

from os import path
import platform

Expand Down

0 comments on commit ecd4c22

Please sign in to comment.