Skip to content

Fix ReDoS in Pytest #105

Fix ReDoS in Pytest

Fix ReDoS in Pytest #105

Workflow file for this run

name: CLARITE CI (Python + R)
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
env:
R_LIBS_USER: ./r-libs
steps:
- uses: actions/checkout@v2
- name: Install R and survey package
run: |
sudo apt update
sudo apt install -y r-base
Rscript -e 'install.packages("survey", repos="https://cloud.r-project.org")'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.5.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies (if cache miss)
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Install library
run: poetry install --no-interaction
- name: Code Quality
run: |
source .venv/bin/activate
black . --check
- name: Test with pytest
run: |
source .venv/bin/activate
pytest -n 2 --cov . --cov-report=xml
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# file: ./coverage.xml
# flags: unittests
# name: codecov-umbrella
# fail_ci_if_error: true
# verbose: true