Skip to content

Commit 61fd415

Browse files
committed
add tnr on push
1 parent 2841e91 commit 61fd415

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/tnr.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

0 commit comments

Comments
 (0)