-
Notifications
You must be signed in to change notification settings - Fork 199
44 lines (35 loc) · 912 Bytes
/
Copy pathtest.yml
File metadata and controls
44 lines (35 loc) · 912 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
43
44
name: Robohash Tests
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and run Docker container
run: |
docker build -t robohash:test .
docker run --name robohash-test -d robohash:test
# Wait for container to start
sleep 5
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pillow
- name: Install the package
run: |
pip install -e .
- name: Run consistency tests
run: |
python tests/test_image_consistency.py
- name: Clean up
run: |
docker stop robohash-test || true
docker rm robohash-test || true