mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-19 14:06:30 +00:00
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 30
|
|
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- os: ubuntu-latest
|
|
python-version: "pypy-2.7"
|
|
- os: macos-latest
|
|
python-version: "3.8"
|
|
- os: windows-latest
|
|
python-version: "3.14"
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
persist-credentials: false
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Python sanity
|
|
run: python -VV
|
|
|
|
- name: Basic import test
|
|
run: python -c "import sqlmap; import sqlmapapi"
|
|
|
|
- name: Unit tests
|
|
run: python -m unittest discover -s tests -p "test_*.py"
|
|
|
|
- name: Smoke test
|
|
run: python sqlmap.py --smoke
|
|
|
|
- name: Vuln test
|
|
run: python sqlmap.py --vuln
|