Skip to content

Commit

Permalink
chore(pipeline): build causy version on git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithWittmann committed Oct 22, 2023
1 parent 6609236 commit b59e235
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 3 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/*"
4 changes: 2 additions & 2 deletions causy/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion causy/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]):
"""
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit b59e235

Please sign in to comment.