Skip to content

Commit

Permalink
fix pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Terézia Slanináková committed Oct 1, 2024
1 parent ecb2faa commit 2c20289
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ jobs:
- name: Run tests with pytest and generate coverage
run: |
pytest --cov=. --cov-report=xml --cov-report=term-missing
export PYTHONPATH=$PYTHONPATH:$(pwd)
echo $PYTHONPATH
python -m pytest --cov=. --cov-report=xml --cov-report=term-missing
- name: Upload coverage report
uses: actions/upload-artifact@v4
Expand Down
6 changes: 6 additions & 0 deletions training/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ line-length = 120
[tool.isort]
profile = "black"
known_third_party = "wandb"

[project]
name = "alphafind_training"
version = "0.0.1"
description = "AlphaFold training -- setup for the similarity search on vast protein data"
readme = "README.md"
4 changes: 2 additions & 2 deletions training/tests/test_create_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import pandas as pd
import pytest
from alphafind_training.create_embedding import run
from alphafind_training.create_embedding import create_embedding


@pytest.fixture(scope="function")
Expand Down Expand Up @@ -37,7 +37,7 @@ def test_create_embedding():
# 45 features for each protein - (10x10 - 10) / 2
expected_dimensionality = 45

run(Path(cif_path), Path(output_path), granularity)
create_embedding(Path(cif_path), Path(output_path), granularity)

assert os.path.exists(output_path)
assert os.path.getsize(output_path) > 0
Expand Down

0 comments on commit 2c20289

Please sign in to comment.