From 7056ff1f4455a0daa8048f8c399489c9b5142678 Mon Sep 17 00:00:00 2001 From: Ivana Kellyerova Date: Tue, 7 Nov 2023 14:06:38 +0100 Subject: [PATCH] Add example ci --- .github/workflows/ci.yaml | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..0c1dea1 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,40 @@ +name: Test + +on: + pull_request_target: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +permissions: + contents: read + +env: + SUPER_SECRET: ${{ secrets.SUPER_SECRET }} + +jobs: + authorize: + environment: + ${{ github.event_name == 'pull_request_target' && + github.event.pull_request.head.repo.full_name != github.repository && + 'external' || 'internal' }} + runs-on: ubuntu-latest + steps: + - run: true + + test: + needs: authorize + name: amazing-test + runs-on: ubuntu-latest + timeout-minutes: 1 + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3.12 + + - name: Install + run: | + pip install sentry_sdk