Skip to content

Create unittest.yml

Create unittest.yml #3

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python application
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
python3 -m pip3 install --upgrade pip3
pip3 install flake8 pytest
- name: build
run: |
sh build.sh
pwd
- name: Test with pytest
run: |
pytest