diff --git a/.github/workflows/rf_tests.yml b/.github/workflows/rf_tests.yml index 4b70939..891de36 100644 --- a/.github/workflows/rf_tests.yml +++ b/.github/workflows/rf_tests.yml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 9a29832..047d472 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 ."