File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # This workflows will upload a Python Package using Twine when a release is created
2+ # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+ name : publish
5+
6+ on :
7+ release :
8+ types : [created]
9+
10+ jobs :
11+ tests :
12+ uses : ./.github/workflows/tests.yml
13+ publish :
14+ needs : [tests]
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/checkout@v4
18+ - name : Set up Python
19+ uses : actions/setup-python@v4
20+ with :
21+ python-version : ' 3.x'
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ pip install setuptools wheel twine
26+ pip install -r requirements.txt
27+ pip install -r test-requirements.txt
28+ - name : Build and publish
29+ env :
30+ TWINE_USERNAME : __token__
31+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
32+ run : |
33+ python setup.py sdist bdist_wheel
34+ twine upload dist/*
Original file line number Diff line number Diff line change 1+ # This workflows will upload a Python Package using Twine when a release is created
2+ # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+ name : publish test
5+
6+ on :
7+ push :
8+ branches :
9+ - testpypi
10+ - testpypi-*
11+ - testpypi/*
12+
13+ jobs :
14+ tests :
15+ uses : ./.github/workflows/tests.yml
16+ publish_test :
17+ needs : [tests]
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v4
21+ - name : Set up Python
22+ uses : actions/setup-python@v4
23+ with :
24+ python-version : ' 3.x'
25+ - name : Install dependencies
26+ run : |
27+ python -m pip install --upgrade pip
28+ pip install setuptools wheel twine
29+ pip install -r requirements.txt
30+ pip install -r test-requirements.txt
31+ - name : Build and publish
32+ env :
33+ TWINE_USERNAME : __token__
34+ TWINE_PASSWORD : ${{ secrets.TESTPYPI_API_TOKEN }}
35+ run : |
36+ python setup.py sdist bdist_wheel
37+ twine upload --repository testpypi dist/*
Original file line number Diff line number Diff line change 1+ name : tests
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - develop
7+
8+ workflow_call :
9+
10+ jobs :
11+ # TODO: https://github.com/devopshq/teamcity/issues/3 - comment carried over from .travis.yml
12+ # style:
13+ # runs-on: ubuntu-latest
14+ # steps:
15+ # - uses: actions/checkout@v4
16+ # - name: Set up Python
17+ # uses: actions/setup-python@v4
18+ # with:
19+ # python-version: '3.x'
20+
21+ # - name: requirements
22+ # run: pip install -r test-requirements.txt
23+
24+ # - name: run checker
25+ # run: flake8
26+
27+ tests :
28+ runs-on : ubuntu-latest
29+ steps :
30+ - uses : actions/checkout@v4
31+ - name : Set up Python
32+ uses : actions/setup-python@v4
33+ with :
34+ python-version : ' 3.x'
35+
36+ - name : requirements
37+ run : |
38+ pip install -r requirements.txt
39+ pip install -r test-requirements.txt
40+
41+ - name : run tests
42+ run : pytest
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -55,3 +55,8 @@ bt = bt.read()
5555
5656## What next?
5757See more examples and full documantation on page: https://devopshq.github.io/teamcity
58+
59+ ## How to release?
60+ 1 . Bump version in ` dohq_teamcity/version.py `
61+ 2 . Merge changes to ** master** branch
62+ 3 . Create Github Release
Original file line number Diff line number Diff line change 1- coverage >=4.0.3
2- nose>=1.3.7
1+ pytest-cov >=4,<5
2+ pytest>=7,<8
33pluggy>=0.3.1
44py>=1.4.31
55randomize>=0.13
You can’t perform that action at this time.
0 commit comments