diff options
| author | 2024-01-18 14:37:28 +0800 | |
|---|---|---|
| committer | 2024-01-18 14:37:28 +0800 | |
| commit | 63d2d92a0e8e559f25b3cd81542e9317fe72057f (patch) | |
| tree | 0c3a693e82c61e3dacafd62b291c5cc505f789b2 /.github/workflows | |
| parent | 08c13ddd0bffd2fc08282afccc73980bdbbdab0d (diff) | |
| parent | 55623b0cb2e0cb49f5ff4f456121b07c2376659c (diff) | |
| download | ipm-63d2d92a0e8e559f25b3cd81542e9317fe72057f.tar.gz ipm-63d2d92a0e8e559f25b3cd81542e9317fe72057f.zip | |
:sparkles: feat(ci): use pdm run python instead
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/test.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f0c1b6c --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +on: + push: + workflow_dispatch: + +jobs: + tests: + name: Test IPM + runs-on: ubuntu-latest + permissions: + id-token: write + contents: write + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.9" + + - name: Setup PDM + run: | + pip install pdm + pdm add pytest + + - name: Install IPM + run: pdm install + + - name: Test API + run: | + pdm run python -m pytest tests/ |
