Skip to content

Commit 9e5276c

Browse files
committed
ci: Migrate from circleci to GH actions
1 parent ecf9e2d commit 9e5276c

File tree

3 files changed

+40
-49
lines changed

3 files changed

+40
-49
lines changed

.circleci/config.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build and run
2+
on:
3+
push:
4+
branches: [ main ]
5+
paths-ignore:
6+
- '**.md' # Do not need to run CI for markdown changes.
7+
pull_request:
8+
branches: [ main ]
9+
paths-ignore:
10+
- '**.md'
11+
12+
jobs:
13+
build-and-run:
14+
runs-on: ubuntu-latest
15+
16+
permissions:
17+
id-token: write # Needed if using OIDC to get release secrets.
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0 # If you only need the current version keep this.
23+
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: 3.8
28+
29+
- name: Install poetry
30+
run: pipx install poetry
31+
32+
- name: Install dependencies
33+
run: poetry install
34+
35+
- uses: launchdarkly/gh-actions/actions/[email protected]
36+
with:
37+
use_server_key: true
38+
role_arn: ${{ vars.AWS_ROLE_ARN }}
39+
command: poetry run python main.py

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# LaunchDarkly Sample OpenFeature Python Server application
22

3-
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/launchdarkly/hello-openfeature-python-server/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/launchdarkly/hello-openfeature-python-server/tree/main)
3+
[![Build and run](https://github.com/launchdarkly/hello-openfeature-python-server/actions/workflows/ci.yml/badge.svg)](https://github.com/launchdarkly/hello-openfeature-python-server/actions/workflows/ci.yml)
44

55
We've built a simple console script that demonstrates how LaunchDarkly's OpenFeature provider works.
66

0 commit comments

Comments
 (0)