-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,13 +16,13 @@ jobs: | |
|
||
- name: Check version numbers | ||
run: ./version.sh | ||
|
||
package-python: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- macos-11 | ||
- macos-latest | ||
- ubuntu-latest | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
@@ -38,30 +38,30 @@ jobs: | |
echo Unsupported RUNNER_OS=$RUNNER_OS | ||
exit 1 | ||
fi | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
|
||
- name: Upload binary wheel | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ format('bdist.{0}', matrix.os) }} | ||
path: wheelhouse/libdash-*.whl | ||
|
||
- name: Build source distribution (Linux only) | ||
if: contains(matrix.os, 'ubuntu') | ||
run: python setup.py sdist | ||
|
||
- name: Upload source distribution (from Linux) | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v4 | ||
if: contains(matrix.os, 'ubuntu') | ||
with: | ||
name: sdist | ||
path: dist/libdash-*.tar.gz | ||
|
||
build-both-and-compare: | ||
strategy: | ||
fail-fast: true | ||
|
@@ -84,17 +84,17 @@ jobs: | |
with: | ||
ocaml-compiler: ${{ matrix.ocaml-compiler }} | ||
dune-cache: true | ||
|
||
- name: Install and test OCaml bindings | ||
run: opam install --with-test --working-dir . | ||
|
||
# we don't reuse the wheels so that all of the CI runs can happen concurrently | ||
- name: Install Python directly | ||
run: sudo pip3 install . | ||
|
||
- name: Test Python bindings | ||
run: make -C python test | ||
|
||
- name: Compare OCaml and Python bindings | ||
run: opam exec -- make -C test test | ||
|
||
|
@@ -105,10 +105,10 @@ jobs: | |
- build-both-and-compare | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags') | ||
|
||
steps: | ||
- name: Download distributions | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v4 | ||
|
||
- name: Rename distributions | ||
run: | | ||
|
@@ -118,7 +118,7 @@ jobs: | |
mv sdist/libdash-*.tar.gz dist/ | ||
echo Look on my Works, ye Mighty, and despair! | ||
ls dist | ||
- name: Deploy 'latest' release on GH | ||
uses: marvinpinto/action-automatic-releases@latest | ||
with: | ||
|
@@ -135,8 +135,8 @@ jobs: | |
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
verbose: true | ||
repository_url: https://test.pypi.org/legacy/ | ||
skip_existing: true | ||
skip_existing: true | ||
|
||
- name: Deploy tagged release on PyPI | ||
if: startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters