chore: Rename unit test workflow file to ci.yml

This commit is contained in:
Drikus Roor
2023-04-12 09:02:28 +02:00
committed by Drikus Roor
parent dc0a94bba3
commit 87d465a8f1

43
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,43 @@
name: Python CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: flake8 scripts/ tests/
- name: Run unittest tests with coverage
run: |
coverage run --source=scripts -m unittest discover tests
- name: Generate coverage report
run: |
coverage report
coverage xml