diff --git a/.github/workflows/package-verification.yml b/.github/workflows/package-verification.yml index 8cee915..4951cf7 100644 --- a/.github/workflows/package-verification.yml +++ b/.github/workflows/package-verification.yml @@ -68,7 +68,7 @@ jobs: run: | twine check dist/* - test: + test-linux-containers: runs-on: ubuntu-latest needs: build-check strategy: @@ -121,3 +121,56 @@ jobs: with: name: testgres.common--test_logs--${{ env.RUN_CFG__NOW }}-${{ env.BASE_SIGN }}-id${{ github.run_id }} path: "${{ env.RUN_CFG__LOGS_DIR }}/" + + test-macos-14: + runs-on: macos-14 + needs: build-check + strategy: + fail-fast: false + matrix: + include: + - python: "3.9" + - python: "3.10" + - python: "3.11" + - python: "3.12" + - python: "3.13" + - python: "3.14" + + env: + BASE_SIGN: "macos-py${{ matrix.python }}" + + steps: + - name: Prepare variables + run: | + echo "RUN_CFG__NOW=$(date +'%Y%m%d_%H%M%S')" >> $GITHUB_ENV + echo "RUN_CFG__LOGS_DIR=logs-${{ env.BASE_SIGN }}" >> $GITHUB_ENV + echo "---------- [$GITHUB_ENV]" + cat $GITHUB_ENV + + - name: Checkout + uses: actions/checkout@v6 + + - name: Prepare logs folder on the host + run: mkdir -p "${{ env.RUN_CFG__LOGS_DIR }}" + + - name: Set up Python ${{ matrix.python }} + uses: actions/setup-python@v6 + with: + python-version: ${{ matrix.python }} + + - name: Run native tests + run: | + set -eux + echo "HELLO FROM ENTRYPOINT" + echo "HOME DIR IS [$(realpath ~/)]" + echo "WORK DIR IS [$(pwd)]" + export TEST_CFG__LOG_DIR="${{ github.workspace }}/${{ env.RUN_CFG__LOGS_DIR }}" + bash run_tests3.sh + + - name: Upload Logs + uses: actions/upload-artifact@v7 + if: always() + with: + name: testgres.common--test_logs--${{ env.RUN_CFG__NOW }}-${{ env.BASE_SIGN }}-id${{ github.run_id }} + path: "${{ env.RUN_CFG__LOGS_DIR }}/" + \ No newline at end of file