Skip to content

Commit 89a6ac9

Browse files
committed
correction yml
1 parent 61fd415 commit 89a6ac9

1 file changed

Lines changed: 17 additions & 38 deletions

File tree

.github/workflows/tnr.yml

Lines changed: 17 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,21 @@
11
name: Test non regression
22

3-
on:
4-
push:
5-
branches: [ main ]
3+
on: [puch]
64

75
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
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

0 commit comments

Comments
 (0)