Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Fixes Token-Permission Issues Identified By Scorecard #47

Fixes Token-Permission Issues Identified By Scorecard

Fixes Token-Permission Issues Identified By Scorecard #47

name: Unit Test DENAS
on:
pull_request:
branches:
- main
paths:
- '.github/workflows/unittest_denas.yml'
- 'conf/**'
- 'demo/**'
- 'Dockerfile-ubuntu/**'
- 'e2eAIOK/DeNas/**'
- 'e2eAIOK/common/**'
- 'tests/unittest/denas/**'
- 'setup.py'
permissions:
contents: read
jobs:
unit_tests:
name: Unit Test DENAS
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install Dependencies
run: |
python --version
pip install -U pip
pip install -U pytest
pip install codecov
pip install build wheel twine
pip install -r e2eAIOK/DeNas/requirements.txt
pip install -r e2eAIOK/ModelAdapter/requirements.txt
- name: Install package
run: |
python setup.py sdist && pip install dist/e2eAIOK-*.*.*.tar.gz
- name: Run test
run: |
pytest tests/unittest/denas
- name: After test summary
run: |
codecov
- name: Submodule package check
run: |
python setup.py bdist_wheel --denas && twine check dist/e2eAIOK_denas-*.*.*-py3-none-any.whl && rm -rf build && rm -rf dist