This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (55 loc) · 1.81 KB
/
pytest.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
name: Install and Pytests
on:
push:
branches:
- master
- develop
- trunk-merge/**
pull_request:
branches:
- master
- develop
workflow_dispatch:
workflow_call:
jobs:
test:
runs-on: ${{ matrix.os }}
environment: testing
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
python-version: [3.9]
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install python dependecies
run: |
python -m pip install --upgrade pip
pip install -r requirements_test.txt
- name: Install CRIPT Python SDK
run: pip install .
- name: Run pytest
env:
IMAGE_VERSION: ${{ secrets.IMAGE_VERSION }}
ENVIRONMENT: ${{ secrets.ENVIRONMENT }}
DEBUG: ${{ secrets.DEBUG }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
GLOBUS_AUTH_CLIENT_ID: ${{ secrets.GLOBUS_AUTH_CLIENT_ID }}
GLOBUS_AUTH_SECRET: ${{ secrets.GLOBUS_AUTH_SECRET }}
GLOBUS_ACCESS_MANAGER_CLIENT_ID: ${{ secrets.GLOBUS_ACCESS_MANAGER_CLIENT_ID }}
GLOBUS_ACCESS_MANAGER_SECRET: ${{ secrets.GLOBUS_ACCESS_MANAGER_SECRET }}
GLOBUS_NATIVE_CLIENT_ID: ${{ secrets.GLOBUS_NATIVE_CLIENT_ID }}
GLOBUS_ENDPOINT_ID: ${{ secrets.GLOBUS_ENDPOINT_ID }}
STORAGE_PROVIDER: ${{ secrets.GLOBUS_ENDPOINT_ID }}
STORAGE_PATH: ${{ secrets.GLOBUS_ENDPOINT_ID }}
run: |
python -m pytest