-
Notifications
You must be signed in to change notification settings - Fork 5
28 lines (26 loc) · 1.01 KB
/
rspamd_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
name: rspamd_test
on:
workflow_call:
inputs:
image:
required: true
type: string
tag:
required: true
type: string
jobs:
rspamd_test:
runs-on: "ubuntu-latest"
container:
image: ${{ inputs.image }}
options: --user root
steps:
- name: Run tests
run: |
apt-get update
apt-get install -y git miltertest python3 python3-dev python3-nacl python3-pip python3-psutil python3-tornado python3-venv redis-server
mkdir -p $GITHUB_WORKSPACE
python3 -mvenv $GITHUB_WORKSPACE/venv --system-site-packages
bash -c "source $GITHUB_WORKSPACE/venv/bin/activate && pip3 install --no-cache --disable-pip-version-check --no-binary :all: robotframework"
git clone -b ${{ inputs.tag }} https://github.com/rspamd/rspamd.git
RSPAMD_INSTALLROOT=/usr bash -c "source $GITHUB_WORKSPACE/venv/bin/activate && robot --removekeywords wuks --exclude isbroken $GITHUB_WORKSPACE/rspamd/test/functional/cases"