@@ -10,70 +10,70 @@ jobs:
10
10
test :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - name : Dump GitHub context
14
- env :
15
- GITHUB_CONTEXT : ${{ toJson(github) }}
16
- run : echo "$GITHUB_CONTEXT"
17
- - name : Translate Repo Name For Build Tools filename_prefix
18
- id : repo-name
19
- run : |
20
- echo ::set-output name=repo-name::$(
21
- echo ${{ github.repository }} |
22
- awk -F '\/' '{ print tolower($2) }' |
23
- tr '_' '-'
24
- )
25
- - name : Set up Python 3.7
26
- uses : actions/setup-python@v1
27
- with :
28
- python-version : 3.7
29
- - name : Versions
30
- run : |
31
- python3 --version
32
- - name : Checkout Current Repo
33
- uses : actions/checkout@v1
34
- with :
35
- submodules : true
36
- - name : Checkout tools repo
37
- uses : actions/checkout@v2
38
- with :
39
- repository : adafruit/actions-ci-circuitpython-libs
40
- path : actions-ci
41
- - name : Install dependencies
42
- # (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.)
43
- run : |
44
- source actions-ci/install.sh
45
- - name : Pip install Sphinx, pre-commit
46
- run : |
47
- pip install --force-reinstall Sphinx sphinx-rtd-theme pre-commit
48
- - name : Library version
49
- run : git describe --dirty --always --tags
50
- - name : Pre-commit hooks
51
- run : |
52
- pre-commit run --all-files
53
- - name : Build assets
54
- run : circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
55
- - name : Archive bundles
56
- uses : actions/upload-artifact@v2
57
- with :
58
- name : bundles
59
- path : ${{ github.workspace }}/bundles/
60
- - name : Build docs
61
- working-directory : docs
62
- run : sphinx-build -E -W -b html . _build/html
63
- - name : Check For setup.py
64
- id : need-pypi
65
- run : |
66
- echo ::set-output name=setup-py::$( find . -wholename './setup.py' )
67
- - name : Build Python package
68
- if : contains(steps.need-pypi.outputs.setup-py, 'setup.py')
69
- run : |
70
- pip install --upgrade setuptools wheel twine readme_renderer testresources
71
- python setup.py sdist
72
- python setup.py bdist_wheel --universal
73
- twine check dist/*
74
- - name : Test Python package
75
- run : |
76
- pip install tox==3.24.5
77
- tox
78
- - name : Setup problem matchers
79
- uses : adafruit/circuitpython-action-library-ci-problem-matchers@v1
13
+ - name : Dump GitHub context
14
+ env :
15
+ GITHUB_CONTEXT : ${{ toJson(github) }}
16
+ run : echo "$GITHUB_CONTEXT"
17
+ - name : Translate Repo Name For Build Tools filename_prefix
18
+ id : repo-name
19
+ run : |
20
+ echo ::set-output name=repo-name::$(
21
+ echo ${{ github.repository }} |
22
+ awk -F '\/' '{ print tolower($2) }' |
23
+ tr '_' '-'
24
+ )
25
+ - name : Set up Python 3.7
26
+ uses : actions/setup-python@v1
27
+ with :
28
+ python-version : 3.7
29
+ - name : Versions
30
+ run : |
31
+ python3 --version
32
+ - name : Checkout Current Repo
33
+ uses : actions/checkout@v1
34
+ with :
35
+ submodules : true
36
+ - name : Checkout tools repo
37
+ uses : actions/checkout@v2
38
+ with :
39
+ repository : adafruit/actions-ci-circuitpython-libs
40
+ path : actions-ci
41
+ - name : Install dependencies
42
+ # (e.g. - apt-get: gettext, etc; pip: circuitpython-build-tools, requirements.txt; etc.)
43
+ run : |
44
+ source actions-ci/install.sh
45
+ - name : Pip install Sphinx, pre-commit
46
+ run : |
47
+ pip install --force-reinstall Sphinx sphinx-rtd-theme pre-commit
48
+ - name : Library version
49
+ run : git describe --dirty --always --tags
50
+ - name : Pre-commit hooks
51
+ run : |
52
+ pre-commit run --all-files
53
+ - name : Build assets
54
+ run : circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location .
55
+ - name : Archive bundles
56
+ uses : actions/upload-artifact@v2
57
+ with :
58
+ name : bundles
59
+ path : ${{ github.workspace }}/bundles/
60
+ - name : Build docs
61
+ working-directory : docs
62
+ run : sphinx-build -E -W -b html . _build/html
63
+ - name : Check For setup.py
64
+ id : need-pypi
65
+ run : |
66
+ echo ::set-output name=setup-py::$( find . -wholename './setup.py' )
67
+ - name : Build Python package
68
+ if : contains(steps.need-pypi.outputs.setup-py, 'setup.py')
69
+ run : |
70
+ pip install --upgrade setuptools wheel twine readme_renderer testresources
71
+ python setup.py sdist
72
+ python setup.py bdist_wheel --universal
73
+ twine check dist/*
74
+ - name : Test Python package
75
+ run : |
76
+ pip install tox==3.24.5
77
+ tox
78
+ - name : Setup problem matchers
79
+ uses : adafruit/circuitpython-action-library-ci-problem-matchers@v1
0 commit comments