Implemented report_syntax function #26
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 Tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run tests | |
run: | | |
SERVER_LOG=$(mktemp) | |
coverage run -m src.server >& $SERVER_LOG & | |
serverPID=$! | |
sleep 3 | |
pytest tests/ | |
kill $serverPID | |
cat $SERVER_LOG | |
sleep 3 | |
- name: Generate coverage report | |
run: | | |
coverage report | |
# - name: Run pylint | |
# run: | | |
# find . -type f -name "*.py" | egrep -v ".git/*" | xargs pylint | |
# - name: Run mypy | |
# run: | | |
# find . -type f -name "*.py" | egrep -v ".git/*" | xargs mypy |