aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/test.yml
blob: 0a6958f07524fcc4a7711072822b8eba954a0f7e (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
31
32
33
34
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: setup pdm
        run: pip install pdm

      - run: pdm install
      
      - name: install test deps
        run: |
          pdm install -dG test
          # pip install pytest
        
      - name: test api
        run: |
          cd tests
          pdm venv activate in-project
          pdm run test-api.py