Skip to content

Commit

Permalink
Keep python 3.11 support for pretrained models (#598)
Browse files Browse the repository at this point in the history
* pause testing pretrained models for 3.10, only support 3.11

* update tutorial tests
  • Loading branch information
sarahmish authored Dec 11, 2024
1 parent 1d8c1de commit b2093a0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ['3.10', '3.11']
python-version: ['3.11']
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v1
Expand Down
15 changes: 9 additions & 6 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,17 @@ def readme(c):
def tutorials(c):
pipelines = os.listdir(os.path.join('orion', 'pipelines', 'pretrained'))
for ipynb_file in glob.glob('tutorials/*.ipynb') + glob.glob('tutorials/**/*.ipynb'):
run = True
for pipeline in pipelines:
if pipeline in ipynb_file: # skip pretrained pipelines
continue
if '.ipynb_checkpoints' not in ipynb_file:
c.run((
'jupyter nbconvert --execute --ExecutePreprocessor.timeout=4400 '
f'--to=html --stdout {ipynb_file}'
), hide='out')
run = False
break

if '.ipynb_checkpoints' not in ipynb_file and run:
c.run((
'jupyter nbconvert --execute --ExecutePreprocessor.timeout=4400 '
f'--to=html --stdout {ipynb_file}'
), hide='out')

@task
def pretrained(c):
Expand Down

0 comments on commit b2093a0

Please sign in to comment.