From 81ce03058a64e9fd304981ef9e05bf6415dc1fb3 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 6 Mar 2025 10:58:38 -1000 Subject: [PATCH] chore: add s390x tests (#408) --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69fae01..a54ef04 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,8 +49,6 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 - - name: Update apt - run: sudo apt update - name: Install libs run: sudo apt-get install -y dbus-daemon python3-gi libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0 - uses: snok/install-poetry@v1.4.1 @@ -74,12 +72,33 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} + test_big_endian: + name: Big-endian s390x tests + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + - uses: uraimo/run-on-arch-action@v3 + name: Run commands + id: runcmd + with: + arch: s390x + distro: ubuntu_latest + run: | + apt-get -y update + apt-get -y install git python3-pip python3-venv python3-poetry dbus-daemon python3-gi libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0 + git clone --depth 1 $GITHUB_SERVER_URL/$GITHUB_REPOSITORY + cd dbus-fast + git fetch origin --depth 1 $GITHUB_SHA + git checkout $GITHUB_SHA + REQUIRE_CYTHON=1 poetry install --only=main,dev + dbus-run-session -- poetry run pytest --no-cov --timeout=100 + benchmark: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Update apt - run: sudo apt update - name: Install libs run: sudo apt-get install -y dbus-daemon python3-gi libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0 - uses: snok/install-poetry@v1.4.1