-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (32 loc) · 893 Bytes
/
python-test.yaml
File metadata and controls
42 lines (32 loc) · 893 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
32
33
34
35
36
37
38
39
40
41
42
name: Python SDK Test
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
environment: Deployment
env:
LOTUS_API_KEY: ${{ secrets.LOTUS_API_KEY }}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install pipenv
run: |
python -m pip install --upgrade pipenv wheel && pipenv update
- id: cache-pipenv
uses: actions/cache@v1
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
- name: Install dependencies
if: steps.cache-pipenv.outputs.cazche-hit != 'true'
run: |
pipenv install --deploy --dev
- name: Test Pytest
run: |
pipenv run pytest