aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/test.yml
blob: f4c789f42f29895137ca15c0de4ffd4e2d1fa1c0 (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:
  test-api:
    name: test commit
    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: set up pdm
        run: pip install pdm
      
      - name: install test deps
        run: |
          pdm install -dG test
        
      - name: test api
        run: |
          cd tests
          python -m test-api.py