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:
1212 contents : read
1313
1414env :
15- mock_version_python3 : " 5.0.1"
16- requests_version_python3 : " 2.28.2"
1715 ACCOUNT_ID : ${{ secrets.ACCOUNT_ID }}
1816 API_KEY : ${{ secrets.API_KEY }}
1917
2826 python-version : " 3.10.14"
2927 - name : Install test dependencies
3028 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
3235 - name : Run tests
3336 run : |
3437 python -m unittest discover
4245 uses : actions/setup-python@v3
4346 with :
4447 python-version : " 3.10.14"
45- - name : run- integration- tests-python3
48+ - name : Run integration tests
4649 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:
2727 fi
2828 - name : Create distribution files
2929 run : |
30- python3 setup.py sdist
30+ python -m pip install build
31+ python -m build
3132 - name : Upload distribution files
3233 env :
3334 TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
3435 TWINE_USER : ${{ secrets.USER }}
3536 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 66
77``` sh
88# install necessary Python version
9- pyenv install 3.13.2
9+ pyenv install 3.13.2
1010
11- # create a virtual enviroment
11+ # create a virtual environment
1212pyenv virtualenv 3.13.2 v3.13
1313pyenv activate v3.13
1414```
You can’t perform that action at this time.
0 commit comments