Merge pull request #6 from DuckyOnQuack-999/cursor/build-and-package-… #11
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: Python CI | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| pull_request: | |
| branches: [ main, master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install pytest flake8 mypy | |
| - name: Lint with flake8 | |
| run: | | |
| flake8 src/ tests/ | |
| - name: Type check with mypy | |
| run: | | |
| mypy src/ | |
| - name: Test with pytest | |
| run: | | |
| pytest tests/ |