Add tests #116
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
grep -v 'crvusdsim' requirements.txt > temp_requirements.txt | |
python -m pip install -r temp_requirements.txt | |
python -m pip install git+https://github.com/Tcintra/crvusdsim@main --no-deps | |
- name: Run Black | |
run: black --check . | |
- name: Run Pylint | |
run: pylint src | |
- name: Run Mypy | |
run: mypy src | |
# TODO add pytest checks and install requirements.txt |