Skip to content

Commit 6862a6d

Browse files
authored
Migrate to GitHub actions
1 parent b8a3982 commit 6862a6d

File tree

6 files changed

+72
-42
lines changed

6 files changed

+72
-42
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release Pytest agent
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: '3.6'
16+
- name: Install dependencies
17+
run: python -m pip install --upgrade pip setuptools wheel
18+
- name: Build package
19+
run: python setup.py sdist bdist_wheel
20+
- name: Publish package
21+
uses: pypa/gh-action-pypi-publish@release/v1
22+
with:
23+
user: ${{ secrets.PYPI_USERNAME }}
24+
password: ${{ secrets.PYPI_PASSWORD }}

.github/workflows/tests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install tox tox-gh-actions
21+
- name: Test with tox
22+
run: tox
23+
- name: Upload coverage to Codecov
24+
if: matrix.python-version == 3.6 && success()
25+
uses: codecov/codecov-action@v1
26+
with:
27+
files: coverage.xml
28+
flags: unittests
29+
name: codecov-client-reportportal
30+
path_to_write_report: codecov_report.txt

.travis.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
include MANIFEST.in
2-
include README.rst CONTRIBUTING.rst
2+
include README.rst CONTRIBUTING.rst requirements.txt

README.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@
22
agent-python-pytest
33
===================
44

5-
Pytest plugin for reporting test results of Pytest to the Reportal Portal.
5+
.. image:: https://img.shields.io/pypi/v/pytest-reportportal.svg
6+
:target: https://pypi.python.org/pypi/pytest-reportportal
7+
:alt: Latest Version
8+
.. image:: https://img.shields.io/pypi/pyversions/pytest-reportportal.svg
9+
:target: https://pypi.org/project/pytest-reportportal
10+
.. image:: https://codecov.io/gh/reportportal/pytest-reportportal/branch/master/graph/badge.svg
11+
:target: https://codecov.io/gh/reportportal/pytest-reportportal
12+
.. image:: https://github.com/reportportal/agent-python-pytest/actions/workflows/tests.yml/badge.svg
13+
:target: https://github.com/reportportal/agent-python-pytest
14+
15+
16+
Pytest plugin for reporting test results of the Pytest to the Reportal Portal.
617

718
* Usage
819
* Installation

tox.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ envlist =
1010

1111
[testenv]
1212
deps =
13-
pytest
14-
pytest-cov
13+
-rrequirements.txt
1514
delayed-assert
16-
commands = pytest --cov=pytest_reportportal --cov-report=xml tests/ -s -vv
15+
pytest-cov
16+
commands = pytest --cov={envsitepackagesdir}/pytest_reportportal --cov-report=xml tests/ -s -vv
1717

1818
[testenv:pep]
1919
skip_install = True
@@ -22,10 +22,10 @@ commands = pre-commit run --all-files --show-diff-on-failure
2222

2323
[testenv:py27]
2424
deps =
25+
-rrequirements.txt
26+
delayed-assert
2527
mock
26-
pytest
2728
pytest-cov
28-
delayed-assert
2929

3030
[gh-actions]
3131
python =

0 commit comments

Comments
 (0)