Skip to content

Add tests folder structure and GitHub actions #5

Add tests folder structure and GitHub actions

Add tests folder structure and GitHub actions #5

Workflow file for this run

name: Run Tests
on:
push:
branches: ["main"]
workflow_dispatch:
pull_request:
types: [opened, synchronize, ready_for_review]
jobs:
run_unit_tests:
runs-on: ${{ matrix.os }}
env:
SENTRY_OPT_OUT: True
strategy:
matrix:
os: [ubuntu-22.04, macos-13] # windows-2022
python: ['3.10']
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install fastdup pytest pytest-cov datasets
- name: Run Tests
run: |
pytest --cov=fastdup