-
Notifications
You must be signed in to change notification settings - Fork 3
66 lines (59 loc) · 1.97 KB
/
pypi.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: pypi
on:
release:
types: [published]
env:
ONBOARDING_API_KEY: ${{ secrets.API_KEY_TESTING_PRO_ONBOARDING_ALL_FEATURES }}
ONBOARDING_SANDBOX_TOKEN: ${{ secrets.ONBOARDING_SANDBOX_TOKEN }}
CONCURRENT_TESTING: True
jobs:
ci:
strategy:
max-parallel: 4
matrix:
os: [ macOS-latest, ubuntu-latest ]
python-version: ['3.9', '3.10', '3.11']
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: '**/*requirements.txt'
- name: Install Requirements
run: |
pip install lume
lume -install
- name: Lint
run: lume -lint
- name: Test [pytest]
run: lume -test
- name: Example [Onboarding]
run: python examples/onboarding.py
- name: Example [Onboarding with Identification]
run: python examples/onboarding_with_identification.py
- name: Example [Onboarding with Certificate]
run: python examples/onboarding_with_certificate.py
- name: Example [Onboarding with Screening]
run: python examples/onboarding_with_screening.py
- name: Example [Auth]
run: python examples/auth.py
- name: Example [Sandbox]
run: python examples/sandbox.py
get-version:
uses: alice-biometrics/actions/.github/workflows/get-version.yml@main
with:
type: release
publish:
needs: [ci, get-version]
uses: alice-biometrics/actions/.github/workflows/publish-pypi.yml@main
with:
package_name: alice-onboarding
version: ${{ needs.get-version.outputs.version }}
folder: alice
secrets:
username: ${{ secrets.PYPI_TOKEN_USERNAME }}
password: ${{ secrets.PYPI_TOKEN_PASSWORD_ALICE_ONBOARDING }}
github_access_token: ${{ secrets.PUBLIC_GITHUB_ACCESS_TOKEN }}