Skip to content

Commit

Permalink
Merge pull request #52 from benyaming/tests-to-pdm
Browse files Browse the repository at this point in the history
Test action to PDM
  • Loading branch information
benyaming authored Oct 21, 2023
2 parents 5b205e6 + 5b099a8 commit 878a086
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 366 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: '3.11'
- uses: abatilo/actions-poetry@v2
- uses: pdm-project/setup-pdm@v3
with:
poetry-version: '1.2.1'
python-version: '3.11'
- name: Install requirements
run: poetry install --with dev
run: pdm install -G :all

- name: Run tests
run: |
poetry run coverage run -m pytest -v test/
poetry run coverage xml
pdm run tests
pdm run xml
- name: Codecov upload
run: bash <(curl -s https://codecov.io/bash)
357 changes: 0 additions & 357 deletions pdm.lock

This file was deleted.

10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ readme = "README.md"
license = {text = "GPL-3.0"}


[project.group.dev.dependencies]
pytest = "7.3.0"
httpx = "0.24.0"
coverage = "7.2.3"
[tool.pdm.dev-dependencies]
test = [
"pytest==7.3.0",
"httpx==0.24.0",
"coverage==7.2.3",
]

[build-system]
requires = ["pdm-backend"]
Expand Down
Empty file removed tests/__init__.py
Empty file.

0 comments on commit 878a086

Please sign in to comment.