Skip to content

Commit e655a32

Browse files
committed
FEAT(CI) GitHub Actions pytest+build+site; no PY36
1 parent b8277cd commit e655a32

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Graphtik
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
cache: "pip"
19+
- name: Graphviz
20+
uses: ts-graphviz/setup-graphviz@v1
21+
- name: Install
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -e .[all]
25+
- name: Test
26+
run: |
27+
# Undo configs in setup.cfg
28+
echo -e '[pytest]\nmarkers: slow' > pytest.ini
29+
pytest --cov=graphtik #--log-level=DEBUG -v
30+
- name: Site
31+
run: |
32+
python setup.py build_sphinx
33+
- name: Wheel
34+
run: |
35+
python setup.py bdist_wheel
36+
- name: Sources
37+
run: |
38+
python setup.py sdist

0 commit comments

Comments
 (0)