Skip to content

Commit 178596f

Browse files
authored
Merge pull request #2 from primetheus/primetheus/fix-tests
Primetheus/fix tests
2 parents 7b12e7a + c27d85d commit 178596f

File tree

3 files changed

+67
-7
lines changed

3 files changed

+67
-7
lines changed

.github/workflows/ci-python.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ jobs:
1717
run-tests:
1818
runs-on: ubuntu-latest
1919
strategy:
20+
fail-fast: false
2021
matrix:
2122
python_version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
2223
steps:
2324
- uses: actions/checkout@v4
2425

2526
- name: Set up Python
26-
uses: actions/setup-python@v4
27+
uses: actions/setup-python@v5
2728
with:
2829
python-version: ${{ matrix.python_version }}
2930

@@ -35,3 +36,4 @@ jobs:
3536
GITHUBAPP_PRIVATE_KEY: "-----BEGIN RSA PRIVATE KEY-----\nkey-data\n-----END RSA PRIVATE KEY-----"
3637
GITHUBAPP_WEBHOOK_SECRET: super-secret-webhook-secret
3738
GITHUBAPP_WEBHOOK_PATH: /webhooks/github/
39+

poetry.lock

Lines changed: 52 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
55

66
[tool.poetry]
77
name = "fastapi-githubapp"
8-
version = "0.1.1"
8+
version = "0.1.2"
99
description = "FastAPI extension for rapid GitHub App development"
1010
readme = "README.md"
1111
authors = ["primetheus <865381+primetheus@users.noreply.github.com>"]
@@ -48,6 +48,7 @@ green = "*"
4848
tox = "*"
4949
tox-gh-actions = "*"
5050
responses = "*"
51+
httpx = "*"
5152
python-semantic-release = "^10.0.2"
5253

5354
[tool.semantic_release]
@@ -56,3 +57,13 @@ tag_format = "v{version}"
5657
version_variable = "pyproject.toml:tool.poetry.version"
5758
upload_to_github = true
5859
upload_to_pypi = true
60+
61+
[tool.pytest.ini_options]
62+
# run tests in the "tests" folder
63+
testpaths = ["tests"]
64+
# add your src/ tree so "import githubapp" works
65+
pythonpath = ["src"]
66+
# pick up only files named test_*.py
67+
python_files = ["test_*.py"]
68+
# shorten output, show extra summary info for skips/fails
69+
addopts = "-q --disable-warnings --strict-markers"

0 commit comments

Comments
 (0)