Skip to content

Commit

Permalink
Github actions (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
couling authored Jan 2, 2024
1 parent 1337bb0 commit d1f006b
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 17 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Pull Request
on:
- pull_request

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]

steps:
- uses: actions/checkout@v4

- name: Install poetry
run: pipx install poetry

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

- name: Install Project and Test Dependencies
run: poetry install --only test,main

- name: Pytest
run: poetry run pytest
148 changes: 132 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ packages = [
mkdocs-deploy = 'mkdocs_deploy.main:main'

[tool.poetry.dependencies]
python = "^3.8"
python = "^3.9"
pydantic = "^1.10.4"
click = "^8.0"
boto3 = ">=1.26.45"
Expand All @@ -29,6 +29,11 @@ mkdocstrings-python = "^0.9.0"
mkdocs-gen-files = "^0.4.0"
mkdocs-material = "^9.1"


[tool.poetry.group.test.dependencies]
pytest = "^7.4.4"
mypy = "^1.8.0"

[tool.poetry.plugins."mkdocs.plugins"]
"mkdocs-deploy" = "mkdocs_deploy.mkdocs_plugin:MkdocsDeploy"

Expand All @@ -51,3 +56,8 @@ build-backend = "poetry_dynamic_versioning.backend"

[tool.mkdocs-deploy]
built_site = "dist/mkdocs_site"

[tool.pytest.ini_options]
testpaths = [
"source/tests",
]
2 changes: 2 additions & 0 deletions source/tests/test_stub.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_stub():
...

0 comments on commit d1f006b

Please sign in to comment.