0d34a9e381
- Python version update to 3.10 - Add the Pylinter step with the main pull request - Py Linter, add the exit code saved
28 lines
582 B
YAML
28 lines
582 B
YAML
name: Unit Test
|
|
|
|
on:
|
|
workflow_call:
|
|
push:
|
|
branches-ignore:
|
|
- main
|
|
- develop
|
|
|
|
|
|
jobs:
|
|
unit-test:
|
|
name: Unit Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.10
|
|
- name: Setup python to execute all Unit Test
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install -r tests/requirements.txt
|
|
|
|
- name: Start all Unit Test
|
|
run: |
|
|
cd ${{ github.workspace }}
|
|
python tests/main.py |