manu
(Manu)
August 20, 2022, 2:42pm
1
Hi,
after pushing a commit to github, in the Run fastai/workflows/nbdev-ci@master step, I get an error
ERROR: Package 'ricardo' requires a different Python: 3.9.13 not in '>=3.10'
I guess it’s because I set up
min_python = 3.10
in settings.ini .
In nbdev1 I “fixed” this a few times by changing the python version in .github/workflows/main.yml …but that file is not there anymore in my nbdev2 repo. How can I fix this in the new nbdev?
Cheers
muellerzr
(Zachary Mueller)
August 20, 2022, 3:08pm
2
cc @hamelsmu , I’ll put a PR in a bit later today so the python version can be passed in as a config for the runner
2 Likes
muellerzr
(Zachary Mueller)
August 23, 2022, 9:58pm
4
You can do this by changing the workflow test yaml to be:
name: CI
on: [workflow_dispatch, pull_request, push]
jobs:
test:
runs-on: ubuntu-latest
steps: [uses: fastai/workflows/nbdev-ci@master]
with:
version: '3.10'
1 Like
manu
(Manu)
August 25, 2022, 11:49am
6
Sorry to be nagging again…
I just realized that, even though I can see the in the commit, I get a Run failed at startup: CI - main
The workflow is not valid. .github/workflows/test.yaml (Line: 8, Col: 5): Unexpected value ‘with’
I think the is only referring to the Deploy to github pages part (there is no with
part in deploy.yaml ).
muellerzr
(Zachary Mueller)
August 25, 2022, 12:16pm
7
Ah. Its the annoying array there.
Id recommended expanding that array out and following the syntax described here:
(Id type out the solution but im on mobile rn. If youre still stuck ill edit it in later!)
1 Like
manu
(Manu)
August 26, 2022, 2:49pm
8
OK, that helped, it’s working now I actually tweaked both deploy.yaml
and test.yaml
. For future reference, this is what they look like now
name: Deploy to GitHub Pages
on:
push:
branches: [ "main", "master" ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: fastai/workflows/quarto-ghp@master
name: CI
on: [workflow_dispatch, pull_request, push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: fastai/workflows/nbdev-ci@master
with:
version: '3.10'
Thanks!!
1 Like