Skip to content

fix: adding ruff as the only CI tool #120

fix: adding ruff as the only CI tool

fix: adding ruff as the only CI tool #120

Workflow file for this run

name: CI Code Checks
on:
pull_request:
push:
branches: [master]
jobs:
build:
name: Code Check
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
python -m nltk.downloader wordnet stopwords
- name: Lint and format check
run: |
ruff check breds tests
ruff format --check breds tests
- name: Type checking
run: mypy -p breds
- name: Running tests
run: |
PYTHONPATH=. coverage run --source=./breds -m pytest
PYTHONPATH=. coverage report
- name: Creating coverage folder
run: mkdir -p coverage
- name: Coverage Badge
run: |
coverage xml
genbadge coverage -i coverage.xml -o coverage/coverage.svg
- name: Publish coverage report to coverage-badge branch
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: coverage-badge
folder: coverage