Skip to content
Closed

test #213

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI Pipeline

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install Dependencies
run: |
pip install coverage .

- name: Run Bash Integration Tests
run: make check

- name: Convert Coverage to XML
run: coverage xml

- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ __pycache__
git_diff_exists
commit_message.txt
black_output.txt
.coverage*
coverage.xml
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: default format lint install check venv
.PHONY: default format lint install check venv coverage

default: check

Expand All @@ -22,9 +22,17 @@ lint: venv
install:
pipx install --force --editable .

check: venv format lint
uv run pytest

export COVERAGE_PROCESS_START = $(PWD)/.coveragerc
coverage:
uv run coverage erase
uv run coverage run --parallel-mode -m pytest
uv run bash tests/run-lint-tests.sh
uv run bash tests/run-format-tests.sh
uv run bash tests/run-shell-tests.sh
uv run bash tests/run-up-validate-tests.sh
uv run coverage combine
uv run coverage report --fail-under=50
uv run coverage xml

check: venv format lint coverage
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ venv = ".venv"
dev = [
"flake8>=7.1.2",
"pytest>=8.3.4",
"coverage",
]
Loading
Loading