convert travis yml to github-actions yml #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pyRACF Linting & Unit Test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Python Setup | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install Dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -r requirements.txt | |
python3 -m pip install -r requirements-development.txt | |
- name: Lint | |
run: | | |
flake8 . | |
pylint --recursive=y . | |
- name: Unit Test | |
run: | | |
coverage run tests/test_runner.py | |
- name: Code Coverage | |
run: | | |
coverage report -m |