Skip to content

Fixing percentile extraction and new proxy url #4

Fixing percentile extraction and new proxy url

Fixing percentile extraction and new proxy url #4

Workflow file for this run

name: Run Unit Tests
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened
branches:
- "main"
concurrency:
# Cancel previous jobs
group: unit_tests-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-tests:
runs-on: ubuntu-latest
env:
FILE_WRITING_ALLOWED: true
steps:
- name: Check out repository
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12.3"
- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
installer-parallel: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: "Run he backend unit tests"
if: ${{ !cancelled() }}
run: poetry run pytest ./code_tests/unit_tests