Merge branch 'master' into fix/remove-http-yaml #377
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Python API Tests | |
| on: | |
| push: | |
| branches: ["**"] | |
| concurrency: | |
| cancel-in-progress: true | |
| group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }} | |
| env: | |
| NODE_ENV: test | |
| jobs: | |
| check-all: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Commit | |
| uses: actions/checkout@v2 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version-file: '.nvmrc' | |
| - uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0 | |
| with: | |
| run_install: false | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.9.21' | |
| - name: Install Dependencies | |
| if: steps.cache-dependencies.outputs.cache-hit != 'true' | |
| run: | | |
| pnpm install --frozen-lockfile | |
| pnpm setup-python | |
| - name: Up for tests API | |
| run: docker compose up --build -d api db test_db | |
| - name: Tests API | |
| run: pnpm test:api | |
| - name: Down for tests API | |
| if: always() | |
| run: docker compose down |