Skip to content

Commit

Permalink
install test dependencies in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Q-back committed Jun 17, 2020
1 parent 78a8b94 commit 0a9cd69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
branches: [ master, develop ]

jobs:
build:
test:
runs-on: ubuntu-18.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand All @@ -21,13 +21,7 @@ jobs:
cp ./extras/docker/.dockerignore ./
- name: build Docker image
run: docker build -t andresriancho/w3af:test-action


test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
run: docker build -t andresriancho/w3af:test-action .

- name: run w3af tests
run: docker run -it andresriancho/w3af:test-action pytest
run: docker run andresriancho/w3af:test-action pytest
3 changes: 3 additions & 0 deletions extras/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ RUN sed 's/apt-get/apt-get -y/g' -i /tmp/w3af_dependency_install.sh
RUN sed 's/pip install/pip install --upgrade/g' -i /tmp/w3af_dependency_install.sh
RUN /tmp/w3af_dependency_install.sh

# install test dependencies
RUN pip install -r w3af/tests/requirements.txt

# Compile the py files into pyc in order to speed-up w3af's start
RUN python -m compileall -q .

Expand Down

0 comments on commit 0a9cd69

Please sign in to comment.