Skip to content

[CI]add workflow yml #5

[CI]add workflow yml

[CI]add workflow yml #5

Workflow file for this run

name: Unittest CPU CI
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
unittest-cpu-ci:
name: unittest-cpu-ci
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: read
id-token: write
steps:
- name: Download Code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
make install
- name: Test
run: make test
- name: Upload Logs
if: always()
uses: actions/upload-artifact@v4
with:
name: unittest-cpu-ci-log
path: |
unittest_cpu.log
if-no-files-found: ignore
- name: Upload Coverage To Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}