diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index a70add87..cbaa5d25 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -53,6 +53,39 @@ jobs: - name: Lint with MyPy run: pipenv run mypy qualicharge tests + bench-api: + needs: build-api + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./src/api + steps: + - uses: actions/checkout@v4 + - name: Install pipenv + run: pipx install pipenv + - name: Set up Python 3.12 + uses: actions/setup-python@v5 + with: + python-version: "3.12" + cache: "pipenv" + cache-dependency-path: "src/api/Pipfile.lock" + - uses: actions/github-script@v7 + id: set-result + with: + script: return "Hello!" + result-encoding: string + - name: Get result + run: echo "${{steps.set-result.outputs.result}}" + - uses: actions/github-script@v7 + with: + script: | + github.rest.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: '👋 Thanks for reporting!' + }) + test-database-migrations: needs: build-api runs-on: ubuntu-latest