Skip to content
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

feat: project documentation #173

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .github/workflows/annotation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
poetry install --no-root
poetry add ../lib/filter_lib
poetry add ../lib/tenants
poetry add ../lib/badgerdoc_cli
poetry run alembic upgrade head
poetry run pytest
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
poetry install --no-root --no-interaction
poetry add ../lib/filter_lib
poetry add ../lib/tenants
poetry add ../lib/badgerdoc_cli
- name: Test with pytest
run: |
cd assets
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/badgerdoc-cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: badgerdoc_cli linters and tests
on:
push:
paths:
- lib/badgerdoc_cli/**
- .github/worlflows/badgerdoc-cli.yml
pull_request:
paths:
- lib/badgerdoc_cli/**
- .github/worlflows/badgerdoc-cli.yml
jobs:
badgerdoc-cli-test:
strategy:
matrix:
python-version: [ "3.8.15" ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
working-directory: ./lib/badgerdoc_cli
run: |
python -m pip install --upgrade pip
pip install ".[dev]"
- name: Run linters and checkers [isort -> black -> mypy -> pylint]
working-directory: ./lib/badgerdoc_cli
run: |
git ls-files -- . | xargs pre-commit run --files
- name: Run tests
working-directory: ./lib/badgerdoc_cli
run: |
pytest tests/
Loading