File tree Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ - push
5+ - pull_request
6+
7+ jobs :
8+ test :
9+ name : Python ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
10+ runs-on : ${{ matrix.os }}
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ version :
15+ - " 3.8"
16+ - " 3.9"
17+ - " 3.10"
18+ os :
19+ - ubuntu-latest
20+ arch :
21+ - x64
22+ - x86
23+
24+ steps :
25+ - uses : actions/checkout@v2
26+
27+ - name : Set up Python ${{ matrix.version }}
28+ uses : actions/setup-python@v2
29+ with :
30+ python-version : ${{ matrix.version }}
31+
32+ - name : Install dependencies
33+ run : |
34+ python -m pip install --upgrade pip
35+ pip install -r requirements.txt
36+ pip install coverage
37+ pip install sphinx
38+
39+ - name : Run tests and Generate coverage report
40+ run : |
41+ coverage run -m pytest
42+ coverage report
43+ coverage xml
44+
45+ - name : Upload coverage to Codecov
46+ uses : codecov/codecov-action@v2
47+ with :
48+ token : ${{ secrets.CODECOV_TOKEN }}
49+ file : ./coverage.xml
50+
51+ docs :
52+ name : Documentation
53+ runs-on : ubuntu-latest
54+ needs : test
55+
56+ steps :
57+ - uses : actions/checkout@v2
58+
59+ - name : Build documentation
60+ run : |
61+ cd docs
62+ make html
63+
64+ - name : Deploy documentation to GitHub Pages
65+ uses : peaceiris/actions-gh-pages@v3
66+ with :
67+ github_token : ${{ secrets.GITHUB_TOKEN }}
68+ publish_dir : docs/build/html
You can’t perform that action at this time.
0 commit comments