Skip to content

fix duplicate tests #124

fix duplicate tests

fix duplicate tests #124

Workflow file for this run

name: Coverage
on:
push:
branches: [ "**" ] # Run on all branches
pull_request:
branches: [ main, dev ]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov codecov
# Install project requirements first
pip install -r requirements.txt
# Install pytorch_lightning (needed for data module)
pip install pytorch-lightning
# Install the package in editable mode with data extras
pip install -e ".[data,tests]"
- name: Run tests with coverage
run: |
pytest tests/ --cov=torch_concepts --cov-report=xml --cov-report=term-missing
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
verbose: true