Refactor the functions responsible for new tw creation #502
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Slips dependencies and run unit tests | |
name: CI-staging | |
on: | |
push: | |
branches: | |
# features will be added to this branch using PRs, not need to re-run the tests on push | |
- '!develop' | |
- '!master' | |
pull_request: | |
branches: | |
- 'develop' | |
- '!master' | |
jobs: | |
run_tests: | |
# specify the host OS | |
runs-on: ubuntu-latest | |
# 2 hours timeout | |
timeout-minutes: 7200 | |
# start a container using slips dependencies image | |
container: | |
image: stratosphereips/slips_dependencies:latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Start redis server | |
run: redis-server --daemonize yes | |
- name: Run unit tests | |
run: python3 -m pytest tests/ --ignore="tests/test_daemon.py" --ignore="tests/test_database.py" --ignore="tests/integration_tests" -n 7 -p no:warnings -vv -s | |
- name: Run database unit tests | |
run: python3 -m pytest tests/test_database.py -p no:warnings -vv | |
- name: Clear redis cache | |
run: ./slips.py -cc | |
- name: Portscan tests | |
run: python3 -m pytest -s tests/integration_tests/test_portscans.py -p no:warnings -vv | |
- name: Integration tests | |
run: python3 -m pytest -s tests/integration_tests/test_dataset.py -p no:warnings -vv | |
- name: Config file tests | |
run: python3 -m pytest -s tests/integration_tests/test_config_files.py -p no:warnings -vv | |
- name: Upload Artifact | |
# run this job whether the above jobs failed or passed | |
if: success() || failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: integration-tests-output | |
path: | | |
output/integration_tests |