File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ # https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
2+ name : Build Wheel
3+
4+ on :
5+ release :
6+ types :
7+ - published
8+
9+ jobs :
10+ test :
11+ runs-on : ${{ matrix.operating-system }}
12+ strategy :
13+ matrix :
14+ python-version : ["3.9"]
15+ operating-system : [windows-latest] # [ubuntu-latest, windows-latest]
16+
17+ steps :
18+ - uses : actions/checkout@v3
19+ - name : Set up Python ${{ matrix.python-version }}
20+ uses : actions/setup-python@v3
21+ with :
22+ python-version : ${{ matrix.python-version }}
23+ - name : Install dependencies
24+ run : |
25+ python -m pip install --upgrade pip setuptools wheel
26+ pip install pytest
27+ pip install pytest-cov
28+ pip install pytest-xvfb
29+ pip install -e .
30+ - name : Test with pytest
31+ run : |
32+ python3 -m pytest --cov=./ --cov-report=xml
33+ - name : Build wheel
34+ run : python setup.py bdist_wheel
35+ - uses : actions/upload-artifact@v3
36+ with :
37+ name : dist
38+ path : dist
39+ if-no-files-found : error
You can’t perform that action at this time.
0 commit comments