-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.09 KB
/
tests.yaml
File metadata and controls
37 lines (36 loc) · 1.09 KB
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
name: Tests
on:
push:
paths:
- 'fortress_sdk/**'
- 'tests/**'
- '.github/workflows/tests.yaml'
jobs:
build-package-and-run-tests:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker-practice/actions-setup-docker@master
- run: |
docker run -d -t -e ADMIN_API_KEY="admin_key" -e SELLER_API_KEY="seller_key" -e BUYER_API_KEY="buyer_key" -p 8080:8080 ghcr.io/atbash-labs/enclave-test
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: install fortress sdk
run: |
pip install -e .
sleep 1m
- name: Test with pytest
run: pytest