Basic Structure pushed to the develop branch #2
Workflow file for this run
This file contains hidden or 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, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libosmesa6-dev libgl1-mesa-glx libglfw3 | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements-dev.txt | |
| - name: Lint with flake8 | |
| run: | | |
| flake8 src tests --count --select=E9,F63,F7,F82 --show-source --statistics | |
| flake8 src tests --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics | |
| - name: Format check with black | |
| run: black --check src tests | |
| - name: Import sort check | |
| run: isort --check-only src tests | |
| - name: Type check with mypy | |
| run: mypy src | |
| - name: Test with pytest | |
| run: pytest tests/ --cov=src --cov-report=xml | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v3 |