Skip to content

Commit

Permalink
Merge pull request #15 from mharrisb1/release/0.2.x
Browse files Browse the repository at this point in the history
release/0.2.x
  • Loading branch information
mharrisb1 authored Apr 24, 2024
2 parents 0054de4 + 77bd06f commit f0b34f7
Show file tree
Hide file tree
Showing 30 changed files with 1,392 additions and 612 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Docs

on:
workflow_dispatch:
push:
branches:
- "main"

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12

- name: Setup Poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.8.2

- name: Install dependencies
shell: bash
run: |
poetry config virtualenvs.in-project true && \
poetry install --with dev
- name: Build docs
shell: bash
run: poetry run mkdocs build

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "./site"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
40 changes: 40 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Tox

on:
pull_request:
paths:
- "src/**"
- pyproject.toml

jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout branch
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Setup Poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.8.2

- name: Install dependencies
shell: bash
run: |
poetry config virtualenvs.in-project true && \
poetry install --with dev
- name: Tox run
shell: bash
run: poetry run tox run
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.mypy_cache/
.pytest_cache/
.tox/
.venv/
.vscode/
__pycache__/
Expand Down
Loading

0 comments on commit f0b34f7

Please sign in to comment.