-
Notifications
You must be signed in to change notification settings - Fork 10
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
Pin mac runners to x64 #450
Changes from 9 commits
dcb880e
eb741a3
5bcbfdb
e4d3f48
1d5bc2a
076da13
9e3374f
041761d
b890ffe
15c16d5
05eff25
411c056
7c1b9c1
918808e
0442778
85cc954
d5a041e
5471a2e
0bb9d0e
15f09b5
cd8a673
7f70019
3383a9e
837f380
fea135d
a408ee7
aaa2001
7fd881f
e5eaadd
29fc00a
e0a06c8
5b08f4d
cc05b06
e8969c9
79b2cd4
b0e39bf
252f57c
abbb2a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,14 +8,14 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
python-version: ["3.8", "3.11"] | ||
os: ["ubuntu-latest", "macos-13", "windows-latest"] | ||
python-version: ["3.8", "3.9", "3.10", "3.11"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Action runners are easy to come by nowadays, and our suite is so light that I think it's fine to test against all versions |
||
steps: | ||
- uses: s-weigand/setup-conda@v1 | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
with: | ||
update-conda: true | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
conda-channels: conda-forge | ||
channels: conda-forge | ||
- uses: actions/checkout@v3 | ||
- run: git fetch --prune --unshallow --tags | ||
|
||
|
@@ -26,12 +26,12 @@ jobs: | |
|
||
- name: Install package | ||
run: | | ||
pip install -e . | ||
pip install . | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When was There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure - originally heard this from @h-mayorquin when we updated NeuroConv similarly It's thrown a deprecation warning in console for a long time - this was the first time when trying it lead to an actual error in CI though But reading into https://packaging.python.org/en/latest/discussions/setup-py-deprecated/ it seems it's not the method itself that's deprecated but rather the route through the CLI - so maybe that could still work However, I'd rather swap the more official There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I see. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Editable mode is a setuptools feature that might not be availabe in other installation backends (e.g. poetry). pip just relies to the instructions to the backend: https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs But I think most backends implement this. Now, the real problematic part is that editable mode in setuptools changed dramatically on recent versions: https://setuptools.pypa.io/en/latest/userguide/development_mode.html My suggestion was that we should not use that API in the CI because it is unstable (within setuptools versions and across build backends implementations) and I suspected it was generating an error (I don't remember if I was right). This is in line what what setuptools suggest themselves (see the attention section in top of limitations here): There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting. Thanks for the additional information @h-mayorquin ! In the pynwb/hdmf stack, we use |
||
pip install dandi | ||
- name: Download testing data and set config path | ||
run: | | ||
dandi download "https://gui-staging.dandiarchive.org/#/dandiset/204919" | ||
python -c "from nwbinspector.testing import update_testing_config; update_testing_config(key='LOCAL_PATH', value='./204919/testing_files/')" | ||
python -c "from nwbinspector.testing import update_testing_config; update_testing_config(key='LOCAL_PATH', value='{nwbinspector.__file__}/204919/testing_files/')" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Another consequence of not using |
||
- name: Uninstall h5py | ||
run: pip uninstall -y h5py | ||
- name: Install ROS3 | ||
|
@@ -43,7 +43,7 @@ jobs: | |
|
||
- name: Run pytest with coverage | ||
run: | | ||
pytest -rsx --cov=./ --cov-report xml:./nwbinspector/nwbinspector/coverage.xml | ||
pytest -rsx --cov=nwbinspector --cov-report xml:./nwbinspector/nwbinspector/coverage.xml | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Need to adjust name here to track coverage (used to rely on |
||
pytest tests/ -rsx tests/read_nwbfile_tests.py # TODO when read_nwbfile is ported | ||
- if: ${{ matrix.python-version == '3.10' && matrix.os == 'ubuntu-latest' }} | ||
name: Upload coverage to Codecov | ||
|
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.
GitHub also started allowing relative paths to these sometime in the last year - making it a lot more convenient