Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make integration tests part of CI workflow #723

Merged
merged 22 commits into from
Nov 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
f3651f6
Make integration tests part of CI workflow
kmazurek Oct 22, 2020
5300199
Remove yagna-commit-hash param from test call
kmazurek Oct 22, 2020
538acba
Use yagna head commit in integration tests
kmazurek Oct 22, 2020
4a7ff99
Use actual yagna head sha on pull requests
kmazurek Oct 23, 2020
5a1508a
Fix sha job conditions
kmazurek Oct 23, 2020
b619142
Merge branch 'master' into km/ci-integration-tests
kmazurek Nov 6, 2020
8825227
Pass yagna artifact between build and test jobs
kmazurek Nov 6, 2020
b46ef36
Merge branch 'master' into km/ci-integration-tests
kmazurek Nov 9, 2020
800010a
Update python version to 3.8
kmazurek Nov 9, 2020
1a158c0
Merge branch 'master' into km/ci-integration-tests
kmazurek Nov 9, 2020
984bbe2
Merge branch 'master' into km/ci-integration-tests
kmazurek Nov 10, 2020
48fb229
Add rust.yml workflow code owners
kmazurek Nov 11, 2020
4e67e1b
Merge branch 'km/ci-integration-tests' of github.com:golemfactory/yag…
kmazurek Nov 11, 2020
fe066a8
Merge branch 'master' into km/ci-integration-tests
kmazurek Nov 12, 2020
f57a3b6
Merge branch 'master' into km/ci-integration-tests
prekucki Nov 12, 2020
e137891
Merge branch 'master' into km/ci-integration-tests
kmazurek Nov 12, 2020
bd74b35
Update code owners on rust.yml workflow
kmazurek Nov 12, 2020
176208b
Merge branch 'master' into km/ci-integration-tests
kmazurek Nov 13, 2020
d2b7783
Merge branch 'master' into km/ci-integration-tests
tworec Nov 16, 2020
9295052
Merge branch 'master' into km/ci-integration-tests
kmazurek Nov 16, 2020
01b3c0b
Merge branch 'master' into km/ci-integration-tests
kmazurek Nov 18, 2020
6adfb5a
Enable payments integration tests
kmazurek Nov 18, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

.github/ @prekucki
.github/workflows/integration-test.yml @golemfactory/ya-integration
.github/workflows/rust.yml @golemfactory/ya-integration

core/activity/ @golemfactory/exe-unit
core/model/src/activity.rs @golemfactory/exe-unit
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/integration-test.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,48 @@ jobs:
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# args: --all-features

integration-test:
name: Run integration tests
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v2
with:
repository: 'golemfactory/yagna-integration'
token: ${{ secrets.YAGNA_WORKFLOW_TOKEN }}

- name: Configure python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Run setuptools
run: python setup.py develop

- name: Print installed package versions
run: pip freeze

- name: Log in to GitHub Docker repository
run: echo ${{ secrets.YAGNA_WORKFLOW_TOKEN }} | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin

- name: Download yagna artifact
uses: actions/download-artifact@v2
with:
name: 'Yagna Linux'
path: /tmp/yagna-build

- name: Run test suite
env:
GITHUB_API_TOKEN: ${{ secrets.YAGNA_WORKFLOW_TOKEN }}
# --assets-path: https://github.com/golemfactory/yagna-integration/issues/336
run: python -m pytest test/yagna -svx --assets-path=/home/runner/work/yagna/yagna/test/yagna/e2e/assets --log-cli-level=DEBUG --yagna-binary-path=/tmp/yagna-build

- name: Upload test logs
uses: actions/upload-artifact@v2
if: always()
with:
name: goth-logs
path: /tmp/yagna-tests