Remove some exprs from CHAR_PATTERN #220
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
name: Run tests | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
paths: | |
- "fenjing/*" | |
- "tests/*" | |
- ".github/workflow/*" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
- name: Install packages | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run tests | |
env: | |
VULUNSERVER_ADDR: "http://127.0.0.1:5000" | |
run: | | |
cd tests | |
export SLEEP_INTERVAL=0.01 | |
# run these two tests first so it failed fast... | |
python vulunserver.py 2>/dev/null & | |
python -m unittest test_payload_gen test_full_payload_gen | |
pip install coverage | |
coverage run --source ../fenjing -m unittest test_* && | |
coverage xml -i | |
# python -m unittest *.py | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |