Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
name: Benchmark

on: [ push ]
on: [push]

permissions:
contents: read

jobs:
benchmark:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.12" ]
python-version: ["3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache: "pip"
- name: Install dependencies
run: |
pip install --upgrade pip
Expand All @@ -25,9 +28,9 @@ jobs:
pytest --benchmark-only --benchmark-json=benchmarks.json
- name: Print summary
run: |
echo "### Benchmark Results" >> $GITHUB_STEP_SUMMARY
echo "
Benchmark|Min (uS)|Median (uS)|Mean (uS)|Max (uS)|Iterations
---|---|---|---|---|---
$(jq -r '.benchmarks[] | [.name,(.stats.min*1000000000 | round / 1000),(.stats.median*1000000000 | round / 1000),(.stats.mean*1000000000 | round / 1000),(.stats.max*1000000000 | round / 1000),.stats.rounds] | join("|")' benchmarks.json)
" >> $GITHUB_STEP_SUMMARY
echo "### Benchmark Results" >> $GITHUB_STEP_SUMMARY
echo "
Benchmark|Min (uS)|Median (uS)|Mean (uS)|Max (uS)|Iterations
---|---|---|---|---|---
$(jq -r '.benchmarks[] | [.name,(.stats.min*1000000000 | round / 1000),(.stats.median*1000000000 | round / 1000),(.stats.mean*1000000000 | round / 1000),(.stats.max*1000000000 | round / 1000),.stats.rounds] | join("|")' benchmarks.json)
" >> $GITHUB_STEP_SUMMARY
7 changes: 5 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Lint
on: pull_request

permissions:
contents: read

jobs:
lint:
name: Lint and Format
Expand All @@ -15,7 +18,7 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: 3.12
cache: 'pip'
cache: "pip"

- name: Install dependencies
run: |
Expand All @@ -28,4 +31,4 @@ jobs:

- name: Run mypy
run: |
mypy .
mypy .
3 changes: 3 additions & 0 deletions .github/workflows/run-test-harness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
branches: [main]

permissions:
contents: read

jobs:
harness-tests:
name: Harness Tests
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/test_examples.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
name: Test Examples

on: [ push ]
on: [push]

permissions:
contents: read

jobs:
test_examples:
name: Test Examples
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.12" ]
python-version: ["3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache: "pip"
- name: Install dependencies
run: |
pip install --upgrade pip
Expand All @@ -35,4 +38,4 @@ jobs:
run: |
cd example && python openfeature_example.py
env:
DEVCYCLE_SERVER_SDK_KEY: dvc_server_token_hash
DEVCYCLE_SERVER_SDK_KEY: dvc_server_token_hash
3 changes: 3 additions & 0 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Unit Tests

on: [push]

permissions:
contents: read

jobs:
unit_tests:
name: Unit Tests
Expand Down
Loading