diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 615c5d2857..927036f7e6 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -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 diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml deleted file mode 100644 index 3dee7262f6..0000000000 --- a/.github/workflows/integration-test.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Integration test - -on: - workflow_run: - workflows: ["CI"] - types: - - completed - -jobs: - yagna-e2e: - name: Run integration tests - runs-on: ubuntu-latest - 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: Run test suite - env: - GITHUB_API_TOKEN: ${{ secrets.YAGNA_WORKFLOW_TOKEN }} - run: python -m pytest test/yagna --assets-path=/home/runner/work/yagna/yagna/test/yagna/e2e/assets -svx --log-cli-level=DEBUG - - - name: Upload test logs - uses: actions/upload-artifact@v2 - if: always() - with: - name: goth-logs - path: /tmp/yagna-tests diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c8bd0bdd7f..ef449b5d9d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 +