Skip to content

Commit

Permalink
gh-actions: Publish releases (#130)
Browse files Browse the repository at this point in the history
* gh-actions: Publish releases

Signed-off-by: Lukas Bednar <[email protected]>

* Fix flake8

Signed-off-by: Lukas Bednar <[email protected]>

* Update tox with python 3.10

Signed-off-by: Lukas Bednar <[email protected]>

---------

Signed-off-by: Lukas Bednar <[email protected]>
  • Loading branch information
lukas-bednar authored Jun 6, 2023
1 parent 2ec006d commit 7db2d5a
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 8 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: PyPI Release

on:
release:
types:
- created

jobs:
release:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.10"] # Use only one version for sdist

steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Check out code
uses: actions/checkout@v2

- name: Install dependencies
run: pip install -r requirements.txt

- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
pip install twine
twine upload dist/*
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.6", "3.7", "3.8", "3.9"]
python: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
Expand Down
3 changes: 2 additions & 1 deletion pytest_jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,8 @@ def pytest_addoption(parser):
group.addoption('--jira-return-metadata',
action='store_true',
dest='return_jira_metadata',
default=_get_value(config, 'DEFAULT', 'return_jira_metadata'),
default=_get_value(
config, 'DEFAULT', 'return_jira_metadata'),
help='If set, will return Jira issue with ticket metadata'
)

Expand Down
8 changes: 4 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name=pytest-jira
author=James Laska
author_email[email protected]
summary=py.test JIRA integration plugin, using markers
description-file=README.rst
description_file=README.rst
license=GPLv2
home-page=http://github.com/rhevm-qe-automation/pytest_jira
home_page=http://github.com/rhevm-qe-automation/pytest_jira
keywords=
pytest
jira
Expand All @@ -19,9 +19,9 @@ classifier=
Operating System :: POSIX
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Software Development :: Testing
Topic :: Software Development :: Quality Assurance
Topic :: Utilities
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py36,py37,py38,py39,pep8
envlist = py38,py39,py310,pep8

[testenv]
deps=
Expand Down

0 comments on commit 7db2d5a

Please sign in to comment.