0 | 5 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,24 @@ |
1 |
+name: build |
|
2 |
+ |
|
3 |
+on: [push] |
|
4 |
+ |
|
5 |
+jobs: |
|
6 |
+ build: |
|
7 |
+ runs-on: ubuntu-latest |
|
8 |
+ steps: |
|
9 |
+ - uses: actions/checkout@v2 |
|
10 |
+ with: |
|
11 |
+ fetch-depth: 1 |
|
12 |
+ - name: apt-update |
|
13 |
+ run: sudo apt-get update -qq |
|
14 |
+ - name: apt-install |
|
15 |
+ run: sudo apt-get install -qq -y --no-install-recommends gir1.2-gtk-3.0 python3-gi python3-gi-cairo python3-numpy graphviz xvfb |
|
16 |
+ - name: test |
|
17 |
+ run: .github/scripts/test.sh |
|
18 |
+ # https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ |
|
19 |
+ # TODO: https://packaging.python.org/guides/using-testpypi/ ? |
|
20 |
+ - name: publish-pypi |
|
21 |
+ if: startsWith(github.ref, 'refs/tags') |
|
22 |
+ uses: pypa/gh-action-pypi-publish@master |
|
23 |
+ with: |
|
24 |
+ password: ${{ secrets.pypi_password }} |
0 | 25 |
deleted file mode 100644 |
... | ... |
@@ -1,36 +0,0 @@ |
1 |
-sudo: required |
|
2 |
-dist: bionic |
|
3 |
- |
|
4 |
-language: generic |
|
5 |
- |
|
6 |
-addons: |
|
7 |
- apt: |
|
8 |
- packages: |
|
9 |
- - gir1.2-gtk-3.0 |
|
10 |
- - python3-gi |
|
11 |
- - python3-gi-cairo |
|
12 |
- - python3-numpy |
|
13 |
- - graphviz |
|
14 |
- - xvfb |
|
15 |
- - twine |
|
16 |
- |
|
17 |
-before_install: |
|
18 |
-- dot -V |
|
19 |
-- /usr/bin/python3 --version |
|
20 |
- |
|
21 |
-script: |
|
22 |
-- cd tests |
|
23 |
-- LANG=C xvfb-run -a -s '-screen 0 1024x768x24' /usr/bin/python3 ../test.py *.dot graphs/*.gv |
|
24 |
-- cd .. |
|
25 |
- |
|
26 |
-# https://docs.travis-ci.com/user/deployment/pypi/ |
|
27 |
-deploy: |
|
28 |
- provider: pypi |
|
29 |
- user: jrfonseca |
|
30 |
- password: |
|
31 |
- secure: HAPllYFYXrSl5IPMIoWHCTuk6rxxqoHDZWudtctiVxBGlaBftya08nFi+jfWHZOE3cofoqnkXUV+9qtMG9aLW8wVtZeABy33KQe2MPppn3dNFN/UKKskXBsFpSeFy8xAwwcWou1okrg9kFfZpxwb272e0MHrtMsXjNmpodrUAhM= |
|
32 |
- on: |
|
33 |
- tags: true |
|
34 |
- distributions: sdist |
|
35 |
- repo: jrfonseca/xdot.py |
|
36 |
- skip_upload_docs: true |