Skip to content

Commit 7bb64f3

Browse files
committed
Updating Workflows to Fix Missing pkg_resources
Signed-off-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
1 parent 17ef259 commit 7bb64f3

File tree

4 files changed

+29
-67
lines changed

4 files changed

+29
-67
lines changed

.github/workflows/copyright.yml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,21 @@ on:
88
pull_request:
99

1010
jobs:
11-
# caching of these jobs:
12-
# - docker-20-03-py3-pip- (shared)
13-
# - ubuntu py37 pip-
14-
# - os-latest-pip- (shared)
1511
copyright:
1612
runs-on: ubuntu-latest
1713
steps:
18-
- uses: actions/checkout@v3
19-
- name: Set up Python 3.9
20-
uses: actions/setup-python@v3
14+
- uses: actions/checkout@v6
15+
- name: Set up Python 3.10
16+
uses: actions/setup-python@v6
2117
with:
22-
python-version: 3.9
23-
- name: cache weekly timestamp
24-
id: pip-cache
25-
run: |
26-
echo "::set-output name=datew::$(date '+%Y-%V')"
27-
- name: cache for pip
28-
uses: actions/cache@v3
29-
id: cache
30-
with:
31-
path: ~/.cache/pip
32-
key: ${{ runner.os }}-pip-${{ steps.pip-cache.outputs.datew }}
18+
python-version: 3.10
19+
cache: 'pip'
3320
- name: Install dependencies
3421
run: |
3522
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
3623
python -m pip install --upgrade pip wheel
37-
python -m pip install -r https://raw.githubusercontent.com/Project-MONAI/MONAI/dev/requirements-dev.txt
38-
python -m pip install -r requirements.txt
24+
pip install --no-build-isolation -r https://raw.githubusercontent.com/Project-MONAI/MONAI/dev/requirements-dev.txt
25+
pip install -r requirements.txt
3926
- name: Copyright check
4027
run: |
4128
$(pwd)/runner.sh --no-run --no-checks --copyright

.github/workflows/guidelines.yml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,21 @@ on:
88
pull_request:
99

1010
jobs:
11-
# caching of these jobs:
12-
# - docker-20-03-py3-pip- (shared)
13-
# - ubuntu py37 pip-
14-
# - os-latest-pip- (shared)
1511
guidelines:
1612
runs-on: ubuntu-latest
1713
steps:
18-
- uses: actions/checkout@v3
19-
- name: Set up Python 3.9
20-
uses: actions/setup-python@v3
14+
- uses: actions/checkout@v6
15+
- name: Set up Python 3.10
16+
uses: actions/setup-python@v6
2117
with:
22-
python-version: 3.9
23-
- name: cache weekly timestamp
24-
id: pip-cache
25-
run: |
26-
echo "::set-output name=datew::$(date '+%Y-%V')"
27-
- name: cache for pip
28-
uses: actions/cache@v3
29-
id: cache
30-
with:
31-
path: ~/.cache/pip
32-
key: ${{ runner.os }}-pip-${{ steps.pip-cache.outputs.datew }}
18+
python-version: 3.10
19+
cache: 'pip'
3320
- name: Install dependencies
3421
run: |
3522
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
3623
python -m pip install --upgrade pip wheel
37-
python -m pip install -r https://raw.githubusercontent.com/Project-MONAI/MONAI/dev/requirements-dev.txt
38-
python -m pip install -r requirements.txt
24+
pip install --no-build-isolation -r https://raw.githubusercontent.com/Project-MONAI/MONAI/dev/requirements-dev.txt
25+
pip install -r requirements.txt
3926
- name: Guidelines notebook format check
4027
run: |
4128
$(pwd)/runner.sh --no-run --no-checks --cell-standard

.github/workflows/pep8.yml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,21 @@ on:
88
pull_request:
99

1010
jobs:
11-
# caching of these jobs:
12-
# - docker-20-03-py3-pip- (shared)
13-
# - ubuntu py37 pip-
14-
# - os-latest-pip- (shared)
1511
pep8:
1612
runs-on: ubuntu-latest
1713
steps:
18-
- uses: actions/checkout@v3
19-
- name: Set up Python 3.9
20-
uses: actions/setup-python@v3
14+
- uses: actions/checkout@v6
15+
- name: Set up Python 3.10
16+
uses: actions/setup-python@v6
2117
with:
22-
python-version: 3.9
23-
- name: cache weekly timestamp
24-
id: pip-cache
25-
run: |
26-
echo "::set-output name=datew::$(date '+%Y-%V')"
27-
- name: cache for pip
28-
uses: actions/cache@v3
29-
id: cache
30-
with:
31-
path: ~/.cache/pip
32-
key: ${{ runner.os }}-pip-${{ steps.pip-cache.outputs.datew }}
18+
python-version: 3.10
19+
cache: 'pip'
3320
- name: Install dependencies
3421
run: |
3522
find /opt/hostedtoolcache/* -maxdepth 0 ! -name 'Python' -exec rm -rf {} \;
3623
python -m pip install --upgrade pip wheel
37-
python -m pip install -r https://raw.githubusercontent.com/Project-MONAI/MONAI/dev/requirements-dev.txt
38-
python -m pip install -r requirements.txt
24+
pip install --no-build-isolation -r https://raw.githubusercontent.com/Project-MONAI/MONAI/dev/requirements-dev.txt
25+
pip install -r requirements.txt
3926
- name: PEP8 check
4027
run: |
4128
$(pwd)/runner.sh --no-run

.github/workflows/test-modified.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ jobs:
1616
build:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v6
2020
- name: Set up Python 3.10
21-
uses: actions/setup-python@v3
21+
uses: actions/setup-python@v6
2222
with:
2323
python-version: '3.10'
24+
cache: 'pip'
2425
- name: Install MONAI
2526
id: monai-install
2627
env:
@@ -33,14 +34,14 @@ jobs:
3334
python -m pip install -U pip wheel
3435
# Force CPU-only PyTorch wheels so we don't download huge CUDA/nvidia-* wheels in CI.
3536
# Keep PyPI available for torch's dependencies.
36-
python -m pip install --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple torch torchvision torchaudio
37+
pip install --index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.org/simple torch torchvision torchaudio
3738
38-
python -m pip install -r https://raw.githubusercontent.com/Project-MONAI/MONAI/dev/requirements-dev.txt
39-
python -m pip install -r requirements.txt
39+
pip install --no-build-isolation -r https://raw.githubusercontent.com/Project-MONAI/MONAI/dev/requirements-dev.txt
40+
pip install -r requirements.txt
4041
4142
# Avoid PEP517 build isolation (which can re-install torch and pull CUDA wheels).
42-
BUILD_MONAI=0 python -m pip install --no-build-isolation git+https://github.com/Project-MONAI/MONAI#egg=MONAI
43-
python -m pip list
43+
BUILD_MONAI=0 pip install --no-build-isolation git+https://github.com/Project-MONAI/MONAI#egg=MONAI
44+
pip list
4445
- name: Notebook quick check
4546
shell: bash
4647
run: |

0 commit comments

Comments
 (0)