File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test non regression
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - name : Check out the code
13+ uses : actions/checkout@v3
14+
15+ - name : Set up Python
16+ uses : actions/setup-python@v3
17+ with :
18+ python-version : ' 3.x'
19+
20+ - name : Install dependencies
21+ run : |
22+ python -m pip install --upgrade pip
23+ pip install setuptools wheel twine
24+ pip install pytest
25+
26+ - name : Check setuptools and wheel
27+ run : |
28+ python -m pip show setuptools wheel || python -m pip install setuptools wheel
29+
30+ - name : Extract package version
31+ run : echo "TAG_NAME=${{ github.ref_name }}" >> $GITHUB_ENV
32+
33+ - name : Update version in setup.py
34+ run : sed -i "s/{{VERSION_PLACEHOLDER}}/${{ env.TAG_NAME }}/g" setup.py
35+
36+ - name : Build the package
37+ run : |
38+ python setup.py sdist bdist_wheel
39+
40+ - name : Test with pytest
41+ run : |
42+ pytest -v
You can’t perform that action at this time.
0 commit comments