Skip to content

Commit

Permalink
Experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
torymur committed Feb 7, 2025
1 parent 2dd24b3 commit a2ccbc5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
27 changes: 23 additions & 4 deletions .github/workflows/release_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: Release PyPi

on:
workflow_dispatch:
release:
types:
- created
# release:
# types:
# - created
pull_request:
branches: [main]

jobs:
build_wheels:
Expand All @@ -13,7 +15,8 @@ jobs:
strategy:
matrix:
# FIXME: rather do one job by OS
os: [ubuntu-latest, macos-latest, windows-latest]
# os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand All @@ -33,6 +36,13 @@ jobs:
path: dist/*.whl
name: wheels-${{ matrix.os }}

- uses: actions/download-artifact@v4
with:
name: sdist
path: dist

- run: ls -R dist

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
Expand All @@ -52,6 +62,13 @@ jobs:
path: dist/*.tar.gz
name: sdist

- uses: actions/download-artifact@v4
with:
name: sdist
path: dist

- run: ls -R dist

# release:
# name: Release to PyPI
# needs: [build_wheels, build_sdist]
Expand All @@ -66,6 +83,8 @@ jobs:
# with:
# name: sdist
# path: dist

# - run: ls -R dist
# - name: Publish to PyPI
# uses: pypa/[email protected]
# with:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Set up test environment
run: |
# python -m venv .venv
# source .venv/bin/activate
# echo "VIRTUAL_ENV=$(pwd)/.venv" >> $GITHUB_ENV
# echo "$(pwd)/.venv/bin" >> $GITHUB_PATH
python -m pip install --upgrade pip
pip install .[test]
maturin develop
- name: Create matrix id
Expand Down

0 comments on commit a2ccbc5

Please sign in to comment.