Skip to content

Commit

Permalink
Add example ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sentrivana committed Nov 7, 2023
1 parent 65a28e4 commit 7056ff1
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7056ff1

Please sign in to comment.