mirror of
https://github.com/trustedsec/hate_crack.git
synced 2026-06-29 09:48:50 -07:00
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
name: Run Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master, develop ]
|
|
pull_request:
|
|
branches: [ main, master, develop ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.9', '3.10', '3.11', '3.12']
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install pytest pytest-mock requests
|
|
|
|
- name: Install Hashcat
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y hashcat
|
|
|
|
- name: Run tests
|
|
run: |
|
|
pytest -v --tb=short
|
|
|
|
- name: Test Summary
|
|
if: always()
|
|
run: |
|
|
echo "## Test Results" >> $GITHUB_STEP_SUMMARY
|
|
echo "Python version: ${{ matrix.python-version }}" >> $GITHUB_STEP_SUMMARY
|
|
pytest --collect-only -q >> $GITHUB_STEP_SUMMARY || true
|