diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..21b1b10 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: Releases + +permissions: + contents: write + issues: write + packages: write + pull-requests: write + repository-projects: write + security-events: write + statuses: write + +on: + push: + tags: + - '*' + +jobs: + build: + strategy: + fail-fast: false + matrix: + python-version: [ "3.11" ] + platform: [ macos-latest ] # TODO: change add ubuntu-latest + runs-on: ${{ matrix.platform }} + steps: + - uses: actions/checkout@v3 + - name: Install dependencies + run: | + python -m pip install --upgrade pip poetry + poetry self add poetry-version-plugin + poetry install + - name: Build + run: | + poetry build + - uses: ncipollo/release-action@v1 + with: + artifacts: "dist/*" diff --git a/causy/algorithms.py b/causy/algorithms.py index 3dfd76f..a935eee 100644 --- a/causy/algorithms.py +++ b/causy/algorithms.py @@ -41,11 +41,11 @@ CalculateCorrelations(), CorrelationCoefficientTest(threshold=0.01), PartialCorrelationTest( - threshold=0.01, parallel=True, chunk_size_parallel_processing=10000 + threshold=0.01, parallel=True, chunk_size_parallel_processing=50000 ), ExtendedPartialCorrelationTestMatrix( threshold=0.01, - chunk_size_parallel_processing=1000, + chunk_size_parallel_processing=20000, parallel=True, generator=PairsWithNeighboursGenerator( chunked=False, diff --git a/causy/graph.py b/causy/graph.py index 086a772..c731f5f 100644 --- a/causy/graph.py +++ b/causy/graph.py @@ -336,7 +336,7 @@ def __init__( ): self.graph = graph self.pipeline_steps = pipeline_steps or [] - self.pool = mp.Pool(round(mp.cpu_count() / 2)) + self.pool = mp.Pool(mp.cpu_count() * 2) def create_graph_from_data(self, data: List[Dict[str, float]]): """ diff --git a/pyproject.toml b/pyproject.toml index 303a4bd..de172ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,6 +23,9 @@ black = "^23.9.1" numpy = "^1.26.0" pdoc = "^14.1.0" +[tool.poetry-version-plugin] +source = "git-tag" + [build-system] requires = ["poetry-core"]