Remove duplicate release step from build workflow #38
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: Test | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[dev,llm,enrich]" | |
| - name: Audit dependencies | |
| run: | | |
| pip-audit | |
| - name: Run linters | |
| run: | | |
| black --check src/ tests/ | |
| ruff check src/ tests/ | |
| - name: Run type checker | |
| run: | | |
| mypy src/pidpal | |
| - name: Run tests | |
| run: | | |
| pytest tests/ -v --cov=pidpal --cov-report=xml | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3 | |
| with: | |
| file: ./coverage.xml | |
| fail_ci_if_error: false |