File tree Expand file tree Collapse file tree 4 files changed +15
-34
lines changed Expand file tree Collapse file tree 4 files changed +15
-34
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ permissions:
12
12
contents : read
13
13
14
14
env :
15
- mock_version_python3 : " 5.0.1"
16
- requests_version_python3 : " 2.28.2"
17
15
ACCOUNT_ID : ${{ secrets.ACCOUNT_ID }}
18
16
API_KEY : ${{ secrets.API_KEY }}
19
17
28
26
python-version : " 3.10.14"
29
27
- name : Install test dependencies
30
28
run : |
31
- pip install requests=="${{ env.requests_version_python3 }}"
29
+ pip install -e .
30
+ pip install -r requirements-dev.txt
31
+ - name : Run linters
32
+ run : |
33
+ pip install -U pre-commit
34
+ pre-commit run -v --all-files
32
35
- name : Run tests
33
36
run : |
34
37
python -m unittest discover
42
45
uses : actions/setup-python@v3
43
46
with :
44
47
python-version : " 3.10.14"
45
- - name : run- integration- tests-python3
48
+ - name : Run integration tests
46
49
run : |
47
- pip3 install .
48
- python3 test_integration_app/main.py
50
+ pip install .
51
+ python test_integration_app/main.py
Original file line number Diff line number Diff line change @@ -27,11 +27,12 @@ jobs:
27
27
fi
28
28
- name : Create distribution files
29
29
run : |
30
- python3 setup.py sdist
30
+ python -m pip install build
31
+ python -m build
31
32
- name : Upload distribution files
32
33
env :
33
34
TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
34
35
TWINE_USER : ${{ secrets.USER }}
35
36
run : |
36
- python3 -m pip install --user --upgrade twine
37
- ls dist/ | xargs -I % python3 -m twine upload --repository pypi dist/%
37
+ python -m pip install --user --upgrade twine
38
+ ls dist/ | xargs -I % python -m twine upload --repository pypi dist/%
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6
6
7
7
``` sh
8
8
# install necessary Python version
9
- pyenv install 3.13.2
9
+ pyenv install 3.13.2
10
10
11
- # create a virtual enviroment
11
+ # create a virtual environment
12
12
pyenv virtualenv 3.13.2 v3.13
13
13
pyenv activate v3.13
14
14
```
You can’t perform that action at this time.
0 commit comments