Files
hate_crack/.github/workflows/tests.yml
T
Justin Bollinger ff5aa612af actions try 2
2026-01-25 19:20:33 -05:00

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