File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Test non regression
22
3- on :
4- push :
5- branches : [ main ]
3+ on : [puch]
64
75jobs :
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
6+ build :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@v3
10+ - name : Set up Python
11+ uses : actions/setup-python@v3
12+ with :
13+ python-version : ' 3.9'
14+ - name : Install dependencies
15+ run : |
16+ python -m pip install --upgrade pip
17+ pip install -r requirements.txt
18+ pip install pytest
19+ - name : Tests
20+ run : |
21+ pytest -v
You can’t perform that action at this time.
0 commit comments