File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44name : tests
55
6- on :
6+ on :
77 push :
88 branches :
99 - main
1414 - main
1515 workflow_dispatch :
1616
17- jobs :
17+ jobs :
1818 test :
1919 name : ${{ matrix.platform }} py${{ matrix.python-version }}
2020 runs-on : ${{ matrix.platform }}
@@ -26,10 +26,12 @@ jobs:
2626
2727 steps :
2828 - uses : actions/checkout@v4
29+
2930 - name : Set up Python ${{ matrix.python-version }}
3031 uses : actions/setup-python@v5
3132 with :
3233 python-version : ${{ matrix.python-version }}
34+
3335 - name : Install dependencies
3436 run : |
3537 python -m pip install --upgrade pip
@@ -45,21 +47,25 @@ jobs:
4547
4648 deploy :
4749 # this will run when you have tagged a commit, starting with "v*"
48- # and requires that you have put your twine API key in your
50+ # and requires that you have put your twine API key in your
4951 # github secrets (see readme for details)
5052 needs : [test]
5153 runs-on : ubuntu-latest
5254 if : contains(github.ref, 'tags')
55+
5356 steps :
5457 - uses : actions/checkout@v4
58+
5559 - name : Set up Python
56- uses : actions/setup-python@v4
60+ uses : actions/setup-python@v5
5761 with :
5862 python-version : " 3.x"
63+
5964 - name : Install dependencies
6065 run : |
6166 python -m pip install --upgrade pip
6267 pip install -U setuptools setuptools_scm wheel twine
68+
6369 - name : Build and publish
6470 env :
6571 TWINE_USERNAME : __token__
Original file line number Diff line number Diff line change @@ -8,32 +8,40 @@ python =
88 3.10: py310
99 3.11: py311
1010fail_on_no_env = True
11-
11+
1212[gh-actions:env]
1313PLATFORM =
1414 ubuntu-latest: linux
1515 macos-latest: macos
1616 windows-latest: windows
1717
1818[testenv]
19- platform =
19+ platform =
2020 macos: darwin
2121 linux: linux
2222 windows: win32
23- passenv =
23+ passenv =
2424 CI
2525 GITHUB_ACTIONS
2626 DISPLAY,XAUTHORITY
2727 NUMPY_EXPERIMENTAL_ARRAY_FUNCTION
2828 PYVISTA_OFF_SCREEN
29+ TEMP
30+ TMP
31+ TMPDIR
32+ TORCHINDUCTOR_CACHE_DIR
33+ setenv =
34+ windows: TORCHINDUCTOR_CACHE_DIR = {env:TEMP}{/}torchinductor
35+ macos: TORCHINDUCTOR_CACHE_DIR = {env:TMPDIR}{/}torchinductor
36+ linux: TORCHINDUCTOR_CACHE_DIR = {env:TMPDIR:/tmp}{/}torchinductor
2937extras = gui
30- deps =
38+ deps =
3139 .[gui]
3240 py
3341 pytest
3442 pytest-cov
3543 pytest-xvfb
3644# ignoring contrib tests for now
37- commands =
45+ commands =
3846 # linux: apt-get update && apt-get install libgl1
3947 pytest -vv -rA --color =yes --cov =cellpose --cov-report =xml --ignore =tests/contrib --durations =0
You can’t perform that action at this time.
0 commit comments