Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
omit =
tests/*
37 changes: 37 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Run tests and upload coverage report to Codecov

on:
push:
branches: [dev, main]

jobs:
coverage:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

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

- name: Install Python dependencies
run: |
pip install -r requirements.txt
pip install codecov
pip install -e .

- name: Run tests with coverage
env:
SKIP_ONLINE_TESTS: "true"
run: |
coverage run -m pytest
coverage xml

- name: Upload score to Codecov
uses: codecov/codecov-action@v4
with:
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
39 changes: 39 additions & 0 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and deploy mkdocs site to GitHub Pages

on:
push:
branches: [main]

jobs:
mkdocs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

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

- name: Install docs dependencies
run: |
pip install mkdocs

- name: Generate index.md from README.md
run: |
cp README.md docs/index.md
sed -i 's|docs/guide.md|guide/|g' docs/index.md
mkdir docs/media
cp media/logo.png docs/media/logo.png

- name: Build mkdocs site
run: mkdocs build

- name: Deploy site to gh-pages branch
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
45 changes: 0 additions & 45 deletions .github/workflows/python-ci.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.idea/
*.egg-info/
.env
__pycache__/
.coverage
dist/
coverage.xml
Loading