Skip to content

Commit dc5bcf4

Browse files
committed
Migrate to github actions
1 parent 71ee61e commit dc5bcf4

File tree

3 files changed

+90
-41
lines changed

3 files changed

+90
-41
lines changed

.github/workflows/dist.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
name: dist
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
check:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: psf/black@stable
12+
13+
check-doc:
14+
runs-on: ubuntu-18.04
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
with:
19+
submodules: recursive
20+
21+
- uses: actions/setup-python@v2
22+
with:
23+
python-version: 3.8
24+
- name: Sphinx
25+
run: |
26+
pip --disable-pip-version-check install -e .
27+
pip --disable-pip-version-check install -r docs/requirements.txt
28+
cd docs && make clean html SPHINXOPTS="-W --keep-going"
29+
30+
test:
31+
runs-on: ${{ matrix.os }}
32+
strategy:
33+
matrix:
34+
os: [windows-latest, macos-latest, ubuntu-18.04]
35+
python_version: [2.7, 3.5, 3.6, 3.7, 3.8]
36+
architecture: [x86, x64]
37+
exclude:
38+
- os: macos-latest
39+
architecture: x86
40+
- os: ubuntu-18.04
41+
architecture: x86
42+
43+
steps:
44+
- uses: actions/checkout@v2
45+
with:
46+
submodules: recursive
47+
48+
- uses: actions/setup-python@v2
49+
with:
50+
python-version: ${{ matrix.python_version }}
51+
architecture: ${{ matrix.architecture }}
52+
53+
- name: Install build dependencies
54+
run: python -m pip --disable-pip-version-check install wheel
55+
56+
- name: Build wheel
57+
run: python setup.py bdist_wheel
58+
59+
- name: Test wheel
60+
shell: bash
61+
run: |
62+
cd dist
63+
python -m pip --disable-pip-version-check install *.whl
64+
cd ../test
65+
python test_CppHeaderParser.py
66+
67+
publish:
68+
runs-on: ubuntu-latest
69+
needs: [check, check-doc, test]
70+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
71+
72+
steps:
73+
- uses: actions/checkout@v2
74+
with:
75+
submodules: recursive
76+
77+
- uses: actions/setup-python@v2
78+
with:
79+
python-version: 3.8
80+
- run: pip --disable-pip-version-check install wheel
81+
82+
- name: Build packages
83+
run: python setup.py sdist bdist_wheel
84+
- name: Publish to PyPI
85+
uses: pypa/gh-action-pypi-publish@master
86+
with:
87+
user: __token__
88+
password: ${{ secrets.pypi_password }}

.travis.yml

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

docs/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sphinx
2+
sphinx-rtd-theme

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy