ci: Migrate from circleci to GH actions #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and run | |
on: | |
push: | |
branches: [ main ] | |
paths-ignore: | |
- '**.md' # Do not need to run CI for markdown changes. | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build-and-run: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write # Needed if using OIDC to get release secrets. | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # If you only need the current version keep this. | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: pip install --user -r requirements.txt | |
- uses: launchdarkly/gh-actions/actions/verify-hello-app@verify-hello-app-v1.0.0 | |
with: | |
use_server_key: true | |
role_arn: ${{ vars.AWS_ROLE_ARN }} | |
command: python test.py |