From b24b175824dd3c879d2610bb8173e71a8fc64d69 Mon Sep 17 00:00:00 2001 From: Charlie Collett Date: Fri, 16 Aug 2024 13:50:17 -0700 Subject: [PATCH] Add test of github actions --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..91b6ae6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI + +on: + pull_request: + branches: + - main + push: + branches: + - github-ci + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Build Docker image for testing + run: | + docker build --target test -t zephir-api2:test . + + - name: Run tests + run: | + docker run --rm zephir-api2:test + + - name: Upload test results + if: always() + uses: actions/upload-artifact@v3 + with: + name: pytest-results + path: ./tests