Created
March 18, 2026 04:40
-
-
Save kurtpayne/c1bdb144ef3d5aa16f780a74227aa78a to your computer and use it in GitHub Desktop.
skillscan-lint: updated ci.yml with Codecov upload — paste into .github/workflows/ci.yml
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] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["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]" | |
| - name: Lint with ruff | |
| run: ruff check src tests | |
| - name: Type check with mypy | |
| run: mypy src --ignore-missing-imports | |
| - name: Run tests | |
| run: pytest tests/ -v --tb=short | |
| - name: Coverage report | |
| run: | | |
| pytest tests/ --cov=src/skillscan_lint --cov-report=term-missing --cov-report=xml | |
| echo "Coverage report generated" | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| files: ./coverage.xml | |
| flags: unittests | |
| name: skillscan-lint | |
| fail_ci_if_error: false | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment