Skip to content

Commit

Permalink
build(pyproject): Fix handling pdm script test/atest args
Browse files Browse the repository at this point in the history
  • Loading branch information
asyrjasalo committed Aug 10, 2024
1 parent 82b7a3c commit 5e186cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
pdm install
- name: Run unit tests
run: pdm test
run: pdm test test/
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ test = [
]

[tool.pdm.scripts]
test = "python -m pytest"
test = "python -m pytest {args:test/}"
testenv = "npx -y mountebank --host localhost --allowInjection --configfile testapi/apis.ejs"
atest = "python -m robot -P src --xunit xunit.xml --outputdir results"
tests = { composite = ["test test/", "atest atest/"] }
atest = "python -m robot -P src --xunit xunit.xml --outputdir results {args:atest/}"
tests = { composite = ["test", "atest"] }
format = "ruff format ."
lint = "ruff check ."
docs = "python -m robot.libdoc -P src REST docs/index.html"
Expand Down

0 comments on commit 5e186cf

Please sign in to comment.