Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit b2b6243

Browse files
authored
Merge pull request #16 from netdevops/ghactions
initial migration to gh actions
2 parents eca2f2f + 5c4d57b commit b2b6243

File tree

5 files changed

+34
-90
lines changed

5 files changed

+34
-90
lines changed
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will install Python dependencies, run tests and lint with a single version of Python
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Python3.6
4+
name: Build and Test
55

66
on:
77
push:
@@ -13,13 +13,17 @@ jobs:
1313
build:
1414

1515
runs-on: ubuntu-latest
16+
strategy:
17+
max-parallel: 3
18+
matrix:
19+
python-version: [3.6, 3.7, 3.8]
1620

1721
steps:
1822
- uses: actions/checkout@v2
19-
- name: Set up Python 3.6
23+
- name: Set up Python ${{ matrix.python-version }}
2024
uses: actions/setup-python@v2
2125
with:
22-
python-version: 3.6
26+
python-version: ${{ matrix.python-version }}
2327
- name: Install dependencies
2428
run: |
2529
python setup.py install

.github/workflows/python-publish.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflows will upload a Python Package using Twine when a release is created
22
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
33

4-
name: Upload Python Package
4+
name: Publish Netnir Package
55

66
on:
77
release:
@@ -29,3 +29,29 @@ jobs:
2929
run: |
3030
python setup.py sdist bdist_wheel
3131
twine upload dist/*
32+
33+
documentation:
34+
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Set up Python
40+
uses: actions/setuppython@v2
41+
with:
42+
python-version: '3.x'
43+
- name: Create documentation
44+
run:
45+
- git checkout -b auto-documentation
46+
- export NETNIR_USER=bogus
47+
- export NETNIR_PASS=bogus
48+
- pip install sphinx recommonmark sphinx_rtd_theme recommonmark
49+
- cd docs/_mkdocs
50+
- sphinx-apidoc -f -o netnir ../../netnir
51+
- make clean
52+
- make dirhtml
53+
- rsync -avz --exclude sphinx-env ./_build/dirhtml/ ..
54+
- cd -
55+
- git add .
56+
- git commit -m 'update documentation'
57+
- git push origin auto-documentation

.github/workflows/python37.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/python38.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)