Skip to content

Commit

Permalink
build(tests): Run testenv in shell
Browse files Browse the repository at this point in the history
  • Loading branch information
asyrjasalo committed Jul 28, 2024
1 parent 68d4e75 commit 46b0fbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/rf_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ jobs:
run: |
python -m pip install --user pdm
pdm install
- name: Start server
- name: Run tests
run: |
pdm testenv &
sleep 5
- name: Run tests
run: pdm atest
pdm atest
- name: Generate Report
id: xunit-viewer
uses: AutoModality/action-xunit-viewer@v1
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ test = [

[tool.pdm.scripts]
test = "python -m pytest test/"
testenv = "npx -y mountebank --host localhost --localOnly true --ipWhitelist 127.0.0.1 --allowInjection --configfile testapi/apis.ejs"
testenv = { shell = "npx -y mountebank --host localhost --localOnly true --ipWhitelist 127.0.0.1 --allowInjection --configfile testapi/apis.ejs" }
atest = "python -m robot -P src --xunit xunit.xml --outputdir results atest/"
tests = { composite = ["test", "atest"] }
format = "black ."
Expand Down

0 comments on commit 46b0fbe

Please sign in to comment.