-
Notifications
You must be signed in to change notification settings - Fork 0
Unit tests #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit tests #10
Changes from all commits
528e935
ec46365
ffba2b1
9fb4217
b9a47b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| name: Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["**"] | ||
| pull_request: | ||
| branches: ["**"] | ||
|
|
||
| jobs: | ||
| tests: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.12" | ||
| cache: "pip" | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -r requirements.txt | ||
| pip install -r requirements-dev.txt | ||
| - name: Add project to PYTHONPATH | ||
| run: echo "PYTHONPATH=$PWD" >> $GITHUB_ENV | ||
| - name: Run tests with coverage | ||
| env: | ||
| MPLCONFIGDIR: ${{ github.workspace }}/.mpl-cache | ||
| XDG_CACHE_HOME: ${{ github.workspace }}/.cache | ||
| run: | | ||
| mkdir -p "$MPLCONFIGDIR" "$XDG_CACHE_HOME"/fontconfig | ||
| pytest --cov=src --cov-report=term-missing --cov-report=xml | ||
| - name: Generate coverage badge | ||
| run: | | ||
| mkdir -p badges | ||
| coverage-badge -o badges/coverage.svg -f | ||
| - name: Commit coverage badge (main branch only) | ||
| if: github.ref == 'refs/heads/main' && github.event_name == 'push' | ||
| uses: stefanzweifel/git-auto-commit-action@v5 | ||
| with: | ||
| commit_message: "chore: update coverage badge" | ||
| branch: main |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| pytest | ||
| pytest-cov | ||
| coverage-badge | ||
| openpyxl |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Package marker for integration tests. |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,98 @@ | ||||
| import json | ||||
|
||||
| import json |
Copilot
AI
Nov 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import of 'os' is not used.
| import os |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,37 @@ | ||||
| import json | ||||
| import os | ||||
|
||||
| import os |
Copilot
AI
Nov 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import of 'Path' is not used.
| from pathlib import Path |
Copilot
AI
Nov 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import of 'tempfile' is not used.
| import tempfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing whitespace after the closing bracket. Consider removing it for cleaner code.