-
Notifications
You must be signed in to change notification settings - Fork 389
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
Updated release file for erroranalysis
#2289
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
7336bf4
Update release-erroranalysis.yml
Advitya17 f11192d
pinned conda version
Advitya17 84d70c9
Merge branch 'main' of https://github.com/microsoft/responsible-ai-to…
Advitya17 9170329
Merge branch 'main' of https://github.com/microsoft/responsible-ai-to…
Advitya17 29f345d
python vision tests
Advitya17 f544ab7
Merge branch 'main' of https://github.com/microsoft/responsible-ai-to…
Advitya17 e4540a0
comment updates
Advitya17 b15705a
comment updates
Advitya17 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 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,81 @@ | ||
name: CI Python Vision | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- "erroranalysis/**" | ||
- "rai_test_utils/**" | ||
- ".github/workflows/CI-python-vision.yml" | ||
|
||
jobs: | ||
ci-python: | ||
strategy: | ||
matrix: | ||
packageDirectory: | ||
["erroranalysis", "rai_test_utils"] | ||
operatingSystem: [ubuntu-latest, macos-latest, windows-latest] | ||
pythonVersion: ["3.8", "3.9", "3.10"] | ||
exclude: | ||
- operatingSystem: macos-latest | ||
pythonVersion: "3.8" | ||
|
||
runs-on: ${{ matrix.operatingSystem }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.pythonVersion }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.pythonVersion }} | ||
|
||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: ${{ matrix.pythonVersion }} | ||
|
||
- if: ${{ matrix.operatingSystem != 'macos-latest' }} | ||
name: Install pytorch on non-MacOS | ||
shell: bash -l {0} | ||
run: | | ||
conda install --yes --quiet pytorch torchvision captum cpuonly -c pytorch | ||
|
||
- if: ${{ matrix.operatingSystem == 'macos-latest' }} | ||
name: Install Anaconda packages on MacOS, which should not include cpuonly according to official docs | ||
shell: bash -l {0} | ||
run: | | ||
conda install --yes --quiet pytorch torchvision captum -c pytorch | ||
|
||
- name: Setup tools | ||
shell: bash -l {0} | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --upgrade setuptools | ||
pip install --upgrade "pip-tools<=7.1.0" | ||
|
||
- name: Install package dependencies | ||
shell: bash -l {0} | ||
run: | | ||
pip install -r requirements-dev.txt | ||
working-directory: ${{ matrix.packageDirectory }} | ||
|
||
- name: Install package + extras | ||
shell: bash -l {0} | ||
run: | | ||
pip install -v -e .[object-detection] | ||
working-directory: ${{ matrix.packageDirectory }} | ||
|
||
- name: Upload requirements | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: requirements-dev.txt | ||
path: raiwidgets/installed-requirements-dev.txt | ||
|
||
- name: Run tests | ||
shell: bash -l {0} | ||
run: | | ||
pytest --durations=10 --doctest-modules --junitxml=junit/test-results.xml --cov=${{ matrix.packageDirectory }} --cov-report=xml --cov-report=html | ||
working-directory: ${{ matrix.packageDirectory }} |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
erroranalysis supports 3.6 onwards. Are we willing to drop support for them? If so, please update the setup.py file. Not testing and hoping that it works sounds dangerous to me.
@imatiach-msft FYI