aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/test.yml
blob: f0c1b6c9fb5d230f0b3d9304f896e50bc32206dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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/