db addition #17
This file contains 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] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install poetry | |
poetry install | |
apt install -y inetutils-ping nmap | |
- name: Run Ruff | |
run: | | |
poetry run ruff check | |
- name: Test | |
run: | | |
poetry run coverage run -m pytest tests | |
poetry run coverage report --fail-under=60 | |
- name: Mutation Testing | |
run: | | |
poetry run mutmut run --no-progress --CI | |
poetry run mutmut html | |
- name: 📤 Upload Mutation Test Report | |
uses: actions/upload-artifact@v2 | |
with: | |
name: mutmut-html-report | |
path: html/bookshelf | |
- name: 🗃️ Cache Mutation Test Artifacts | |
uses: actions/cache/save@v3 | |
with: | |
path: .mutmut-cache | |
key: mutmut-cache-${{ github.ref_name }}-${{ hashFiles('bookshelf/*.py') }} | |