Skip to content

Commit d36a250

Browse files
committed
WIP
1 parent 7fa5d23 commit d36a250

File tree

5 files changed

+19
-18
lines changed

5 files changed

+19
-18
lines changed

.github/workflows/integrationtest.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
cache: 'pip'
2929

3030
- name: Install the requirements
31-
run: pip install pdm && pdm install && pdm list
31+
run: pip install pdm && pdm install
3232

3333
- name: Execute the integrationtests (http1.1)
34-
run: python3 -m unittest discover tests/integrationtest
34+
run: .venv/bin/python3 -m unittest discover tests/integrationtest
3535
env:
3636
GRAFANA_HOST: ${{ secrets.GRAFANA_HOST }}
3737
GRAFANA_TOKEN: ${{ secrets.GRAFANA_TOKEN }}
@@ -45,7 +45,7 @@ jobs:
4545
run: sleep 20
4646

4747
- name: Execute the integrationtests (http2)
48-
run: python3 -m unittest discover tests/integrationtest
48+
run: .venv/bin/python3 -m unittest discover tests/integrationtest
4949
env:
5050
GRAFANA_HOST: ${{ secrets.GRAFANA_HOST }}
5151
GRAFANA_TOKEN: ${{ secrets.GRAFANA_TOKEN }}

.github/workflows/publish-to-pypi.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ jobs:
2424
cache: 'pip'
2525

2626
- name: Install the requirements
27-
run: pip install pdm && pdm install -g --no-self && pdm add -g setuptools~=65.5.1 mkdocs mkdocs-material build
27+
run: pip install pdm && pdm install --no-self && pdm add setuptools~=65.5.1 mkdocs mkdocs-material build
2828

2929
- name: Prepare the PyPi documentation
3030
run: python3 .github/workflows/scripts/adjust-the-readme-file.py
3131

3232
- name: Build a binary wheel and a source tarball
33-
run: python -m build --sdist --wheel --outdir dist/
33+
run: .venv/bin/python3 -m build --sdist --wheel --outdir dist/
3434

3535
- name: Setup the GitHub user
3636
run: |
3737
git config --local user.email "github-actions[bot]@users.noreply.github.com"
3838
git config --local user.name "github-actions[bot]"
3939
4040
- name: Update the GitHub pages documentation
41-
run: cd docs && mkdocs gh-deploy --force && cd ..
41+
run: cd docs && .venv/bin/mkdocs gh-deploy --force && cd ..
4242

4343
- name: Publish distribution package to PyPI
4444
if: startsWith(github.ref, 'refs/tags')

.github/workflows/pull-request-checks.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
cache: 'pip'
2424

2525
- name: Install the requirements
26-
run: pip install pdm && pdm config python.use_venv false && pdm install --no-self -d && pdm list && ls -la && pip list
26+
run: pip install pdm && pdm install --no-self -d
2727

2828
- name: Execute the unittests
29-
run: PYTHONPATH=$PWD/src python3 -m unittest discover tests/unittests
29+
run: PYTHONPATH=$PWD/src .venv/bin/python3 -m unittest discover tests/unittests
3030

3131
pr-lint:
3232
runs-on: ubuntu-latest
@@ -76,7 +76,7 @@ jobs:
7676
run: pip install pdm && pdm install --no-self -d && pdm add pytest-cov coverage-badge
7777

7878
- name: Generate the coverage report
79-
run: PYTHONPATH=$PWD/src pytest --junitxml=pytest.xml --cov=. tests/unittests | tee pytest-coverage.txt
79+
run: PYTHONPATH=$PWD/src .venv/bin/pytest --junitxml=pytest.xml --cov=. tests/unittests | tee pytest-coverage.txt
8080

8181
- name: Execute the coverage checks
8282
uses: MishaKav/[email protected]
@@ -88,7 +88,7 @@ jobs:
8888
create-new-comment: true
8989

9090
- name: Generate coverage badge
91-
run: coverage-badge -f -o docs/coverage.svg
91+
run: .venv/bin/coverage-badge -f -o docs/coverage.svg
9292

9393
- name: Check changed files
9494
uses: tj-actions/verify-changed-files@v20
@@ -136,7 +136,7 @@ jobs:
136136
run: pip install pdm && pdm add pydoc-markdown==4.6.3 pyyaml==5.3.1 mkdocs mkdocs-material
137137

138138
- name: Generate documentation
139-
run: pydoc-markdown --render-toc && rm -rf docs/content && mv build/docs/* docs
139+
run: .venv/bin/pydoc-markdown --render-toc && rm -rf docs/content && mv build/docs/* docs
140140

141141
- name: Check changed files
142142
uses: tj-actions/verify-changed-files@v20

pdm.lock

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ authors = [
77
]
88
dependencies = [
99
"httpx",
10+
"pytest>=8.3.5",
1011
]
1112
requires-python = ">=3.9"
1213
readme = "README.md"

0 commit comments

Comments
 (0)