Skip to content

Commit

Permalink
Update build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
adityagoel4512 committed Oct 14, 2024
1 parent 50ee759 commit 34d6280
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 28 deletions.
34 changes: 12 additions & 22 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,24 @@ on:
- published

jobs:
build_sdist_and_wheel:
name: Build sdist and wheel on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0

- name: Build
run: |
pip install build
python -m build
- name: Test install and import
run: |
python -m venv ./env
. ./env/bin/activate
pip install dist/*.whl
python -c "import spox"
- uses: actions/upload-artifact@v4
- name: Set up pixi
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659
with:
environments: build
- name: Build project
run: pixi run -e build build-wheel
- name: Upload package
uses: actions/upload-artifact@v4
with:
name: artifact
path: dist/*

upload_pypi:
name: Upload to PyPI
needs: [build_sdist_and_wheel]
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,10 @@ defaults:

jobs:
tests:
name: "Linux - weekly unit tests - ${{ matrix.OS }}"
runs-on: ${{ matrix.OS }}
name: "Linux - weekly unit tests - ubuntu-latest"
runs-on: ubuntu-latest
env:
CI: True
strategy:
fail-fast: true
matrix:
OS: ["ubuntu-latest"]
steps:
- name: Checkout branch
uses: actions/checkout@v4
Expand Down

0 comments on commit 34d6280

Please sign in to comment.