-
Notifications
You must be signed in to change notification settings - Fork 278
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
5 changed files
with
55 additions
and
34 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 |
---|---|---|
|
@@ -30,9 +30,9 @@ jobs: | |
TVM_VERSION_TAG: v0.15.0 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Lint with flake8 | ||
|
@@ -128,18 +128,18 @@ jobs: | |
python setup.py bdist_wheel | ||
python -m pip install dist/tvm-*.whl | ||
# We don't run pytest for Linux py3.8 since we do coverage for that case. | ||
# We don't run pytest for Linux py3.9 since we do coverage for that case. | ||
- name: Test with pytest | ||
if: ${{ matrix.python-version != '3.8' || startsWith(matrix.os, 'ubuntu') != true }} | ||
run: pytest -v | ||
# Run and push coverage only for Linux py3.8 | ||
- name: Coverage 3.8 Linux | ||
if: ${{ matrix.python-version == '3.8' && startsWith(matrix.os, 'ubuntu') }} | ||
if: ${{ matrix.python-version != '3.9' || startsWith(matrix.os, 'ubuntu') != true }} | ||
run: pytest | ||
# Run and push coverage only for Linux py3.9 | ||
- name: Coverage 3.9 Linux | ||
if: ${{ matrix.python-version == '3.9' && startsWith(matrix.os, 'ubuntu') }} | ||
run: | | ||
coverage run -a -m pytest tests -v | ||
coverage xml | ||
- name: Upload coverage to Codecov | ||
if: ${{ matrix.python-version == '3.8' && startsWith(matrix.os, 'ubuntu') }} | ||
if: ${{ matrix.python-version == '3.9' && startsWith(matrix.os, 'ubuntu') }} | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
file: ./coverage.xml | ||
|
@@ -151,14 +151,15 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [ubuntu-22.04] | ||
python-version: ['3.8'] | ||
python-version: ['3.9'] | ||
permissions: # here we push documentation | ||
actions: read | ||
deployments: write | ||
contents: write | ||
if: github.ref == 'refs/heads/main' # only run this on main after PR merged | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Generate Documentation | ||
|
@@ -170,7 +171,6 @@ jobs: | |
# now refresh the code | ||
git checkout . && python -m pip install -e .[tests] -f https://download.pytorch.org/whl/torch_stable.html | ||
- name: Deploy to GitHub pages 🚀 | ||
if: ${{ github.ref == 'refs/heads/main' && matrix.python-version == '3.8' && startsWith(matrix.os, 'ubuntu') }} | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
|
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
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
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
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