Skip to content

Commit 49dc6e0

Browse files
committed
chore: setup github actions
1 parent b07325f commit 49dc6e0

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

.github/checks.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Checks
2+
3+
on:
4+
push:
5+
branches: ['**']
6+
7+
jobs:
8+
checks:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.13'
17+
18+
- name: Test
19+
run: make test
20+
21+
##
22+
# Example project
23+
#
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version-file: '.nvmrc'
27+
28+
- name: Setup Featurevisor example-1 project
29+
run: |
30+
mkdir example-1
31+
(cd example-1 && npx @featurevisor/cli@2.x init --example=1)
32+
(cd example-1 && npm install)
33+
(cd example-1 && npx featurevisor build)
34+
(cd example-1 && npx featurevisor test)
35+
36+
- name: Run Featurevisor project tests against Python SDK
37+
run: PYTHONPATH=src python3 -m featurevisor test --projectDirectoryPath=./example-1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
specs
33
monorepo
44
featurevisor-go
5+
example-1
56

67
# Bytecode / cache
78
__pycache__/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Featurevisor Python SDK
1+
# featurevisor-python
22

33
This repository ports the latest Featurevisor [JavaScript SDK](https://featurevisor.com/docs/sdks/javascript/) to Python.
44

0 commit comments

Comments
 (0)