Skip to content

Commit

Permalink
[Minor] Update release-action (#20)
Browse files Browse the repository at this point in the history
* Update release-action

 On branch udd-upload-artifact
 Changes to be committed:
	modified:   .github/workflows/release.yaml

* Typo

* Typo

* Fix args

* Fix imports, path and typos

 On branch udd-upload-artifact
 Your branch is up to date with 'origin/udd-upload-artifact'.

 Changes to be committed:
	modified:   .github/workflows/release.yaml
	modified:   .gitignore
	modified:   pyproject.toml
	modified:   python/farsante/h2o_dataset_create.py

* Drop redundant and buggy option --interpreter

It should work without it because of ENV VARS

* Missing brackets
  • Loading branch information
SemyonSinchenko authored Mar 10, 2024
1 parent aa42c75 commit eaa21d9
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,36 @@
name: Build release

on:
push:
branches: [ master ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Maturin build
uses: PyO3/maturin-action@v1
with:
command: build
args: --release
args: --release --strip

- name: Upload wheel
uses: actions/upload-artifact@v4
with:
name: python-${{ matrix.python-version }}-wheels
path: target/wheels/*whl

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ __pycache__/

.env
.venv

# Maturin stuff
*.so
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ test = ["pytest >= 7.2"]
features = ["pyo3/extension-module"]
python-source = "python"
python-packages = ["farsante"]
module-name = "farsante_rs"
module-name = "farsante.farsante_rs"
bindings = "pyo3"
2 changes: 1 addition & 1 deletion python/farsante/h2o_dataset_create.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from concurrent.futures import ProcessPoolExecutor
from itertools import repeat

from farsante_rs import generate_csv_py
from farsante.farsante_rs import generate_csv_py


def pretty_sci(n: int) -> str:
Expand Down

0 comments on commit eaa21d9

Please sign in to comment.