-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 926 Bytes
/
Copy pathci.yml
File metadata and controls
31 lines (29 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Python SDK
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python }}
- run: python -m unittest discover -s tests -v
- name: Build and check distributions
if: matrix.python == '3.14'
run: |
python -m pip install build twine
python -m build
python -m twine check dist/*
python -m pip install --no-deps dist/*.whl
cd "$RUNNER_TEMP"
python -c "from sentinel import Sentinel, SentinelError; assert Sentinel('sk_test_fixture').api_key == 'sk_test_fixture'"