Skip to content

Commit

Permalink
[CI] Fix azure (#161)
Browse files Browse the repository at this point in the history
* Fix azure

Signed-off-by: Adam Li <[email protected]>

* Add temp release process

Signed-off-by: Adam Li <[email protected]>

* Run azure on pr

Signed-off-by: Adam Li <[email protected]>

---------

Signed-off-by: Adam Li <[email protected]>
  • Loading branch information
adam2392 authored Dec 6, 2023
1 parent 30db4f5 commit be77d22
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
37 changes: 36 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,39 @@ Some good tools for profiling memory are ``mprof``. For example, one can memory

Then one could plot the memory usage:

mprof plot
mprof plot

# Making a Release

1. Ctrl+f and replace all version indicators with the new version. For example,

`0.5.0dev0` -> `0.5.0`

2. Write release notes in `whats_new.rst`

3. Build package locally and test


python -m build

4. Upload to Test PyPi


twine upload --repository-url https://test.pypi.org/legacy/ dist/*


5. Build docs locally

make -C build-doc

6. Push docs under `doc/_build/html/` to the `stable/` folder in `gh-pages` branch


7. Make release to PyPi


twine upload dist/*

or if you have two-factor authentication enabled: <https://pypi.org/help/#apitoken>

twine upload dist/* --repository mne-connectivity
6 changes: 5 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ trigger:
include:
- main
- maint/*
pr:
branches:
include:
- '*' # must quote since "*" is a YAML reserved character; we want a string

jobs:
- job: Windows
Expand Down Expand Up @@ -34,7 +38,7 @@ jobs:
pip install git+https://github.com/mne-tools/mne-python
pip install --upgrade .[test] codecov
displayName: "Install dependencies with pip"
- script: python setup.py develop
- script: pip install .
displayName: "Install MNE-Connectivity"
- bash: |
set -e
Expand Down

0 comments on commit be77d22

Please sign in to comment.