Skip to content

Commit

Permalink
Update workflow to fix import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsWinter committed Dec 10, 2024
1 parent 04bec37 commit 30085a3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 24 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Run Tests and Build Package
name: Run Tests

on:
push:
branches: [ main, develop ]
branches: [main, develop]
pull_request:
branches: [ main, develop ]
schedule:
- cron: '0 10 5 * *' # Optional scheduled runs
branches: [main, develop]

jobs:
test:
Expand All @@ -31,10 +29,5 @@ jobs:
- name: Run Tests with Coverage
run: |
poetry run pytest ./tests --cov=./cpm_python --cov-report=xml --cov-report=term
- name: Upload Coverage Report to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
fail_ci_if_error: true # Fails the CI if uploading fails
export PYTHONPATH=$(pwd)
poetry run pytest ./tests --cov=./cpm --cov-report=xml --cov-report=term
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,6 @@ cython_debug/

examples/tmp
examples/simulated_data
tests/tmp

poetry.lock
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/wwu-mmll/cpm_python/cpm/python-test)](https://github.com/wwu-mmll/cpm_python/actions)
[![GitHub Workflow Status](https://github.com/wwu-mmll/confound_corrected_cpm/actions/workflows/python-test.yml/badge.svg)](https://github.com/wwu-mmll/confound_corrected_cpm/actions/workflows/python-test.yml)
[![Coverage Status](https://coveralls.io/repos/github/wwu-mmll/cpm_python/badge.svg?branch=main)](https://coveralls.io/github/wwu-mmll/cpm_python?branch=main)
[![Github Contributors](https://img.shields.io/github/contributors-anon/wwu-mmll/cpm_python?color=blue)](https://github.com/wwu-mmll/cpm_python/graphs/contributors)
[![Github Commits](https://img.shields.io/github/commit-activity/y/wwu-mmll/cpm_python)](https://github.com/wwu-mmll/cpm_python/commits/main)
Expand Down
1 change: 0 additions & 1 deletion tests/test_cpm_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def setUp(self):
cpm = CPMRegression(results_directory='./tmp',
cv=KFold(n_splits=10, shuffle=True, random_state=42),
edge_selection=univariate_edge_selection,
add_edge_filter=True,
n_permutations=2)
self.X, self.y, self.covariates = simulate_regression_data_2(n_samples=100, n_features=45)

Expand Down
10 changes: 0 additions & 10 deletions tests/test_package.py

This file was deleted.

0 comments on commit 30085a3

Please sign in to comment.