-
Notifications
You must be signed in to change notification settings - Fork 11
70 lines (70 loc) · 1.88 KB
/
test.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
65
66
67
68
69
70
---
name: "Test"
on:
pull_request:
push:
branches:
- "qa/**"
- "stable/**"
jobs:
test-virtualenv:
name: "Test (virtualenv)"
runs-on: "ubuntu-22.04"
steps:
- name: "Check out repository"
uses: "actions/checkout@v3"
- name: "Set up Python"
uses: "actions/setup-python@v4"
with:
python-version: "3.9"
cache: "pip"
cache-dependency-path: |
requirements-dev.txt
- name: "Install requirements"
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: "Run test"
run: |
./simplebrowsertest.py
test-docker:
name: "Test (docker)"
runs-on: "ubuntu-22.04"
steps:
- name: "Check out repository"
uses: "actions/checkout@v3"
- name: "Build containers"
run: |
docker build -t archivematica-acceptance-tests --build-arg TARGET --build-arg PYTHON_VERSION .
env:
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1
TARGET: "archivematica-acceptance-tests"
PYTHON_VERSION: "3.9"
- name: "Run test"
run: |
docker run \
--rm \
--security-opt="seccomp=unconfined" \
archivematica-acceptance-tests \
/home/artefactual/acceptance-tests/simplebrowsertest.py
lint:
name: "Lint"
runs-on: "ubuntu-22.04"
steps:
- name: "Check out repository"
uses: "actions/checkout@v3"
- name: "Set up Python"
uses: "actions/setup-python@v4"
with:
python-version: "3.9"
cache: "pip"
cache-dependency-path: |
requirements-dev.txt
- name: "Install tox"
run: |
python -m pip install --upgrade pip
pip install tox
- name: "Run tox"
run: |
tox -e linting