Merge pull request #301 from cardanoapi/fix/backend-health-check #562
This file contains 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: Backend Service Testing ( Pytest ) | |
on: | |
push: | |
branches: ["master", "dev"] | |
pull_request: | |
branches: ["dev"] | |
jobs: | |
run_backend_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Enable Access for Branch for Workflow | |
uses: actions/checkout@v2 | |
- name: setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.12.2 | |
- name: Install Poetry | |
working-directory: api | |
run: pip install poetry==1.8.2 | |
- name: Install Dependencies | |
working-directory: api | |
run: | | |
poetry install | |
poetry run prisma generate | |
- name: Run test cases | |
working-directory: api | |
env: | |
DATABASE_URL: "" | |
run: poetry run pytest -m github_actions |