Initialize repository with script and first version of tests #20
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: Test & Lint | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test-lint: | |
runs-on: ubuntu-latest | |
container: | |
image: python:2.7 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install requirements | |
run: pip install --upgrade -r requirements.txt | |
- name: Lint | |
run: pylint --rcfile=.pylintrc scripts/* tests/* | |
- name: Test | |
run: python -m pytest --cov --cov-report=xml | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
fail_ci_if_error: true | |
verbose: true # optional (default = false) |