@@ -200,46 +200,130 @@ jobs:
200200 NAUTOBOT_VERSION : " 1.0.1"
201201 needs :
202202 - " pytest"
203- # publish_gh:
204- # name: "Publish to GitHub"
205- # runs-on: "ubuntu-20.04"
206- # if: "startsWith(github.ref, 'refs/tags/v')"
207- # steps:
208- # - name: "Check out repository code"
209- # uses: "actions/checkout@v2"
210- # - name: "Set up Python"
211- # uses: "actions/setup-python@v2"
212- # with:
213- # python-version: "3.9"
214- # - name: "Install Python Packages for Publishing"
215- # run: "pip install invoke poetry toml"
216- # - name: "Set env"
217- # run: "echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})"
218- # - name: "Run Poetry Version"
219- # run: "poetry version $RELEASE_VERSION"
220- # - name: "Run Poetry Build"
221- # run: "poetry build"
222- # - name: "Upload binaries to release"
223- # uses: "svenstaro/upload-release-action@v2"
224- # with:
225- # repo_token: "${{ secrets.NTC_GITHUB_TOKEN }}"
226- # file: "dist/*"
227- # tag: "$RELEASE_VERSION"
228- # overwrite: true
229- # file_glob: true
230- # needs:
231- # - "integration_nautobot"
232- # publish_pypi:
233- # name: "Push Package to PyPI"
234- # runs-on: "ubuntu-20.04"
235- # if: "startsWith(github.ref, 'refs/tags/v')"
236- # steps:
237- # - name: "Check out repository code"
238- # uses: "actions/checkout@v2"
239- # - name: "Push to PyPI"
240- # uses: "pypa/gh-action-pypi-publish@release/v1"
241- # with:
242- # user: "__token__"
243- # password: "${{ secrets.PYPI_API_TOKEN }}"
244- # needs:
245- # - "integration_nautobot"
203+ integration_netbox210 :
204+ name : " Integration Test - NetBox 2.10"
205+ runs-on : " ubuntu-20.04"
206+ steps :
207+ - name : " Check out repository code"
208+ uses : " actions/checkout@v2"
209+ - name : " Set up Python"
210+ uses : " actions/setup-python@v2"
211+ with :
212+ python-version : " 3.9"
213+ - name : " Run Install"
214+ run : |
215+ pyenv versions
216+ pyenv global 3.9.4
217+ which pip
218+ pip -V
219+ pip install invoke toml poetry pynetbox ansible==2.10.7
220+ ansible-galaxy collection install git+https://github.com/netbox-community/ansible_modules.git,v3.0.0
221+ poetry config virtualenvs.create false
222+ poetry config installer.parallel false
223+ poetry install
224+ invoke integration-tests
225+ env :
226+ NETBOX_VERSION : " v2.10"
227+ needs :
228+ - " pytest"
229+ integration_netbox29 :
230+ name : " Integration Test - NetBox 2.9"
231+ runs-on : " ubuntu-20.04"
232+ steps :
233+ - name : " Check out repository code"
234+ uses : " actions/checkout@v2"
235+ - name : " Set up Python"
236+ uses : " actions/setup-python@v2"
237+ with :
238+ python-version : " 3.9"
239+ - name : " Run Install"
240+ run : |
241+ pyenv versions
242+ pyenv global 3.9.4
243+ which pip
244+ pip -V
245+ pip install invoke toml poetry pynetbox ansible==2.10.7
246+ ansible-galaxy collection install git+https://github.com/netbox-community/ansible_modules.git,v3.0.0
247+ poetry config virtualenvs.create false
248+ poetry config installer.parallel false
249+ poetry install
250+ invoke integration-tests
251+ env :
252+ NETBOX_VERSION : " v2.9"
253+ needs :
254+ - " pytest"
255+ integration_netbox28 :
256+ name : " Integration Test - NetBox 2.8"
257+ runs-on : " ubuntu-20.04"
258+ steps :
259+ - name : " Check out repository code"
260+ uses : " actions/checkout@v2"
261+ - name : " Set up Python"
262+ uses : " actions/setup-python@v2"
263+ with :
264+ python-version : " 3.9"
265+ - name : " Run Install"
266+ run : |
267+ pyenv versions
268+ pyenv global 3.9.4
269+ which pip
270+ pip -V
271+ pip install invoke toml poetry pynetbox ansible==2.10.7
272+ ansible-galaxy collection install git+https://github.com/netbox-community/ansible_modules.git,v3.0.0
273+ poetry config virtualenvs.create false
274+ poetry config installer.parallel false
275+ poetry install
276+ invoke integration-tests
277+ env :
278+ NETBOX_VERSION : " v2.8"
279+ needs :
280+ - " pytest"
281+ publish_gh :
282+ name : " Publish to GitHub"
283+ runs-on : " ubuntu-20.04"
284+ if : " startsWith(github.ref, 'refs/tags/v')"
285+ steps :
286+ - name : " Check out repository code"
287+ uses : " actions/checkout@v2"
288+ - name : " Set up Python"
289+ uses : " actions/setup-python@v2"
290+ with :
291+ python-version : " 3.9"
292+ - name : " Install Python Packages for Publishing"
293+ run : " pip install invoke poetry toml"
294+ - name : " Set env"
295+ run : " echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})"
296+ - name : " Run Poetry Version"
297+ run : " poetry version $RELEASE_VERSION"
298+ - name : " Run Poetry Build"
299+ run : " poetry build"
300+ - name : " Upload binaries to release"
301+ uses : " svenstaro/upload-release-action@v2"
302+ with :
303+ repo_token : " ${{ secrets.NTC_GITHUB_TOKEN }}"
304+ file : " dist/*"
305+ tag : " $RELEASE_VERSION"
306+ overwrite : true
307+ file_glob : true
308+ needs :
309+ - " integration_nautobot"
310+ - " integration_netbox210"
311+ - " integration_netbox29"
312+ - " integration_netbox28"
313+ publish_pypi :
314+ name : " Push Package to PyPI"
315+ runs-on : " ubuntu-20.04"
316+ if : " startsWith(github.ref, 'refs/tags/v')"
317+ steps :
318+ - name : " Check out repository code"
319+ uses : " actions/checkout@v2"
320+ - name : " Push to PyPI"
321+ uses : " pypa/gh-action-pypi-publish@release/v1"
322+ with :
323+ user : " __token__"
324+ password : " ${{ secrets.PYPI_API_TOKEN }}"
325+ needs :
326+ - " integration_nautobot"
327+ - " integration_netbox210"
328+ - " integration_netbox29"
329+ - " integration_netbox28"
0 commit comments