-
Notifications
You must be signed in to change notification settings - Fork 136
Switch from travis-ci to GitHub workflow. #185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7dea0ea
Switch from travis-ci to GitHub workflow.
davidlehn d8be226
Add flake8 lint workflow.
davidlehn f9d0885
Support Python >= 3.8.
davidlehn 577ac07
Update Python versions.
davidlehn fc3b388
Temporarily skip failing tests.
davidlehn f7876f3
Support aiohttp loader in Python 3.14.
davidlehn 765f22d
Update actions.
davidlehn be389b6
Test pypy3.11.
davidlehn 74a084f
Simplify lint job.
davidlehn 5e13b98
Fix workflow issues reported by zizmor.
davidlehn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| name: Main CI | ||
|
|
||
| on: [push] | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: '3.14' | ||
| cache: 'pip' | ||
| - name: Install testing dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -r requirements-test.txt | ||
| - name: Lint | ||
| # FIXME | ||
| continue-on-error: true | ||
| run: | | ||
| flake8 lib/pyld tests --count --show-source --statistics | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| needs: [lint] | ||
| timeout-minutes: 10 | ||
| strategy: | ||
| matrix: | ||
| python-version: | ||
| - '3.10' | ||
| - '3.11' | ||
| - '3.12' | ||
| - '3.13' | ||
| - '3.14' | ||
| - 'pypy3.10' | ||
| - 'pypy3.11' | ||
| loader: [requests, aiohttp] | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Use Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| cache: 'pip' | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -r requirements.txt | ||
| - name: Install testing dependencies | ||
| run: | | ||
| pip install -r requirements-test.txt | ||
| - name: Fetch test suites | ||
| run: | | ||
| git clone --depth 1 https://github.com/w3c/json-ld-api.git _json-ld-api | ||
| git clone --depth 1 https://github.com/w3c/json-ld-framing.git _json-ld-framing | ||
| git clone --depth 1 https://github.com/json-ld/normalization.git _normalization | ||
mielvds marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - name: Test with Python=${{ matrix.python-version }} Loader=${{ matrix.loader }} | ||
| run: | | ||
| python tests/runtests.py ./_json-ld-api/tests -l ${{ matrix.loader }} | ||
| python tests/runtests.py ./_json-ld-framing/tests -l ${{ matrix.loader }} | ||
| python tests/runtests.py ./_normalization/tests -l ${{ matrix.loader }} | ||
anatoly-scherbakov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| env: | ||
| LOADER: ${{ matrix.loader }} | ||
| #coverage: | ||
| # needs: [test] | ||
| # FIXME | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| flake8 |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.