-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #323 from reportportal/develop
Release
- Loading branch information
Showing
16 changed files
with
248 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
# Copyright 2022 EPAM Systems | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: Release Pytest agent | ||
|
||
on: | ||
push: | ||
branches: ['master'] | ||
branches: [ 'master' ] | ||
paths-ignore: | ||
- '.github/**' | ||
- CHANGELOG.md | ||
|
@@ -20,19 +33,19 @@ env: | |
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Generate versions | ||
uses: HardNorth/github-version-generate@v1.1.2 | ||
uses: HardNorth/github-version-generate@v1 | ||
with: | ||
version-source: file | ||
version-file: ${{ env.VERSION_FILE }} | ||
version-file-extraction-pattern: ${{ env.VERSION_EXTRACT_PATTERN }} | ||
|
||
- name: Setup git credentials | ||
uses: oleksiyrudenko/gha-git-credentials@v2 | ||
uses: oleksiyrudenko/gha-git-credentials@v2.1.1 | ||
with: | ||
name: 'reportportal.io' | ||
email: '[email protected]' | ||
|
@@ -45,7 +58,7 @@ jobs: | |
git push --tags | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.6' | ||
|
||
|
@@ -62,7 +75,7 @@ jobs: | |
password: ${{ secrets.PYPI_PASSWORD }} | ||
|
||
- name: Checkout develop branch | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: 'develop' | ||
fetch-depth: 0 | ||
|
@@ -82,22 +95,18 @@ jobs: | |
- name: Read changelog Entry | ||
id: readChangelogEntry | ||
uses: mindsers/changelog-reader-action@v1.3.1 | ||
uses: mindsers/changelog-reader-action@v2 | ||
with: | ||
version: ${{ env.RELEASE_VERSION }} | ||
path: ./${{ env.CHANGE_LOG_FILE }} | ||
|
||
- name: Create Release | ||
id: createRelease | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
tag_name: ${{ env.RELEASE_VERSION }} | ||
release_name: Release ${{ env.RELEASE_VERSION }} | ||
body: ${{ steps.readChangelogEntry.outputs.log_entry }} | ||
draft: false | ||
prerelease: false | ||
tag: ${{ env.RELEASE_VERSION }} | ||
name: Release ${{ env.RELEASE_VERSION }} | ||
body: ${{ steps.readChangelogEntry.outputs.changes }} | ||
|
||
- name: Merge release branch into develop | ||
id: mergeIntoDevelop | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,47 @@ | ||
# Copyright 2022 EPAM Systems | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
name: Tests | ||
|
||
on: [push, pull_request] | ||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
python-version: [2.7, 3.6, 3.7, 3.8, 3.9, '3.10'] | ||
python-version: [ '2.7', '3.6', '3.7', '3.8', '3.9', '3.10' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox tox-gh-actions | ||
- name: Test with tox | ||
run: tox | ||
- name: Upload coverage to Codecov | ||
if: matrix.python-version == 3.6 && success() | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
files: coverage.xml | ||
flags: unittests | ||
name: codecov-client-reportportal | ||
path_to_write_report: codecov_report.txt | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox tox-gh-actions | ||
- name: Test with tox | ||
run: tox | ||
|
||
- name: Upload coverage to Codecov | ||
if: matrix.python-version == 3.6 && success() | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: coverage.xml | ||
flags: unittests | ||
name: codecov-client-reportportal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import logging | ||
import threading | ||
|
||
from reportportal_client.steps import step | ||
|
||
log = logging.getLogger(__name__) | ||
|
||
|
||
def worker(): | ||
log.info("TEST_INFO") | ||
log.debug("TEST_DEBUG") | ||
|
||
|
||
def test_log(): | ||
t = threading.Thread(target=worker) | ||
log.info("TEST_BEFORE_THREADING") | ||
with step("Some nesting where the thread logs should go"): | ||
t.start() | ||
t.join() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.