feat: add Command Line Interface #39
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
| # .github/workflows/ci.yml | |
| name: CI - Tests, Lint, Format, Type Check | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test-lint-type: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [3.12] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements-dev.txt | |
| pip install -r requirements.txt | |
| pip install -e . | |
| pip install black flake8 mypy | |
| - name: Check code formatting with Black | |
| run: black --check src tests | |
| - name: Run Flake8 linter | |
| run: flake8 src tests | |
| - name: Run all tests | |
| run: pytest -v --benchmark-disable | |
| - name: Run performance benchmarks | |
| run: pytest -v tests/test_performance.py --benchmark-only |