Skip to content

Commit

Permalink
ci: adapt release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kod-kristoff committed Dec 9, 2024
1 parent a67e67e commit 3bb70a6
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 510 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
# This action runs the test suite on the built artifact in the `build` action.
# The default is to run this in ubuntu, macos and windows

name: ${{ matrix.os }} / 3.9 / test built artifact
name: ${{ matrix.os }} / 3.9 / ${{ matrix.json-lib }} / test built artifact
needs: [build]

strategy:
Expand All @@ -80,6 +80,9 @@ jobs:
- ubuntu
- macos
- windows
json-lib:
- orjson
- json

runs-on: ${{ matrix.os }}-latest
steps:
Expand All @@ -98,11 +101,13 @@ jobs:
name: pypi_files
path: dist

- run: rm -r src
- run: rm -r src/json_arrays
- run: pip install typing-extensions
- run: pip install -r tests/requirements-testing.lock
- run: pip install ${{ matrix.json-lib }}
if: matrix.json-lib != 'json'
- run: pip install json-arrays --no-index --no-deps --find-links dist --force-reinstall
- run: pytest
- run: pytest tests

# https://github.com/marketplace/actions/alls-green#why used for branch protection checks
release-check:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ jobs:

- name: Install dependencies
run: make install-dev-${{ matrix.json-lib }}

#----------------------------------------------
# Run tests and upload coverage
#----------------------------------------------
Expand Down
Loading

0 comments on commit 3bb70a6

Please sign in to comment.