-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With tree-sitter-zeek providing a proper Python package this project is script-only.
- Loading branch information
Showing
2 changed files
with
11 additions
and
20 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 |
---|---|---|
|
@@ -25,34 +25,26 @@ jobs: | |
with: | ||
path: dist/*.tar.gz | ||
|
||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
check: | ||
name: Run tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04, windows-2019, macos-12, macos-13] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
submodules: recursive | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: pip install .[dev] | ||
- run: pytest | ||
|
||
- name: Build and test wheels | ||
uses: pypa/[email protected] | ||
env: | ||
# We currently skip all PyPy builds due to hard exits and | ||
# segfaults of the Python interpreter with some input trees. | ||
CIBW_SKIP: pp* | ||
CIBW_TEST_REQUIRES: pytest | ||
CIBW_TEST_COMMAND: python -mpytest {project} | ||
CIBW_TEST_COMMAND_WINDOWS: python.exe -mpytest {project} | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
|
||
upload_all: | ||
needs: [build_sdist, build_wheels] | ||
needs: [build_sdist, check] | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') | ||
steps: | ||
|
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