File tree Expand file tree Collapse file tree 2 files changed +26
-29
lines changed Expand file tree Collapse file tree 2 files changed +26
-29
lines changed Original file line number Diff line number Diff line change @@ -172,34 +172,6 @@ jobs:
172172 https://api.github.com/repos/openfisca/openfisca-doc/actions/workflows/deploy.yaml/dispatches \
173173 -d '{"ref":"main"}'
174174
175- build-conda :
176- runs-on : ubuntu-22.04
177- needs : [setup]
178- # Do not build on master, the artifact will be used
179- if : github.ref != 'refs/heads/master'
180- steps :
181- - uses : conda-incubator/setup-miniconda@v2
182- with :
183- auto-update-conda : true
184- python-version : 3.10.6
185- # Add conda-forge for OpenFisca-Core
186- channels : conda-forge
187- activate-environment : true
188- - uses : actions/checkout@v4
189- - name : Display version
190- run : echo "version=`python setup.py --version`"
191- - name : Conda Config
192- run : |
193- conda install conda-build anaconda-client
194- conda info
195- - name : Build Conda package
196- run : conda build --croot /tmp/conda .conda
197- - name : Upload Conda build
198- uses : actions/upload-artifact@v3
199- with :
200- name : conda-build-`python setup.py --version`-${{ github.sha }}
201- path : /tmp/conda
202-
203175 publish-to-conda :
204176 runs-on : ubuntu-22.04
205177 needs : [publish-to-pypi]
Original file line number Diff line number Diff line change @@ -66,13 +66,38 @@ jobs:
6666 python : ${{ matrix.python }}
6767 activate_command : source venv/bin/activate
6868
69+ build-conda :
70+ runs-on : ubuntu-22.04
71+ steps :
72+ - uses : conda-incubator/setup-miniconda@v2
73+ with :
74+ auto-update-conda : true
75+ python-version : 3.10.6
76+ # Add conda-forge for OpenFisca-Core
77+ channels : conda-forge
78+ activate-environment : true
79+ - uses : actions/checkout@v4
80+ - name : Display version
81+ run : echo "version=`python setup.py --version`"
82+ - name : Conda Config
83+ run : |
84+ conda install conda-build anaconda-client
85+ conda info
86+ - name : Build Conda package
87+ run : conda build --croot /tmp/conda .conda
88+ - name : Upload Conda build
89+ uses : actions/upload-artifact@v3
90+ with :
91+ name : conda-build-`python setup.py --version`-${{ github.sha }}
92+ path : /tmp/conda
93+
6994 # The idea behind these dependencies is we want to give feedback to
7095 # contributors on the version number only after they have passed all tests,
7196 # so they don't have to do it twice after changes happened to the main branch
7297 # during the time they took to fix the tests.
7398 check-version :
7499 runs-on : ubuntu-22.04
75- needs : [test, lint]
100+ needs : [test, lint, build-conda ]
76101
77102 steps :
78103 - uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments