From 9414e7940d7faeed4ffd19805f9dc732ba01631c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Eckel?= Date: Mon, 16 Jan 2023 10:45:54 +0100 Subject: [PATCH] simplified gh actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Eckel --- .github/workflows/unit-test-no-abci.yml | 60 ------------------- .../{unit-test-abci.yml => unit-tests.yml} | 0 2 files changed, 60 deletions(-) delete mode 100644 .github/workflows/unit-test-no-abci.yml rename .github/workflows/{unit-test-abci.yml => unit-tests.yml} (100%) diff --git a/.github/workflows/unit-test-no-abci.yml b/.github/workflows/unit-test-no-abci.yml deleted file mode 100644 index 3b9b7a8..0000000 --- a/.github/workflows/unit-test-no-abci.yml +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright © 2020 Interplanetary Database Association e.V., -# Planetmint and IPDB software contributors. -# SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) -# Code is Apache-2.0 and docs are CC-BY-4.0 - -name: Unit tests - with Planemint -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Check out repository code - uses: actions/checkout@v3 - - - name: Build container - run: | - docker-compose -f docker-compose.yml build --no-cache planetmint - - - name: Save image - run: docker save -o planetmint.tar planetmint_planetmint - - - name: Upload image - uses: actions/upload-artifact@v3 - with: - name: planetmint - path: planetmint.tar - retention-days: 5 - - - test-without-abci: - runs-on: ubuntu-latest - needs: build - strategy: - matrix: - include: - - db: "Tarantool without ABCI" - host: "tarantool" - port: 3303 - - steps: - - name: Check out repository code - uses: actions/checkout@v3 - - - name: Download planetmint - uses: actions/download-artifact@v3 - with: - name: planetmint - - - name: Load planetmint - run: docker load -i planetmint.tar - - - name: Start containers - run: docker-compose -f docker-compose.yml up -d bdb - - - name: Run tests - run: docker exec planetmint_planetmint_1 pytest -v --cov=planetmint --cov-report xml:htmlcov/coverage.xml - - - name: Upload Coverage to Codecov - uses: codecov/codecov-action@v3 \ No newline at end of file diff --git a/.github/workflows/unit-test-abci.yml b/.github/workflows/unit-tests.yml similarity index 100% rename from .github/workflows/unit-test-abci.yml rename to .github/workflows/unit-tests.yml