upload noisy-host-demo #28
This file contains hidden or 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: CI – PAM Toolkit | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install flake8 | |
| run: pip install flake8==7.0.0 | |
| - name: Lint Python files | |
| run: flake8 crowdstrike/ --count --show-source --statistics | |
| - name: Run demo tests | |
| run: | | |
| set -e | |
| python crowdstrike/noisy-hosts.py | |
| python crowdstrike/session-replay.py --demo | |
| echo "All tests passed!" | |
| - name: Test summary | |
| if: always() | |
| run: | | |
| echo "### Test Results" >> $GITHUB_STEP_SUMMARY | |
| echo "- Python: ${{ matrix.python-version }}" >> $GITHUB_STEP_SUMMARY | |
| echo "- Status: ${{ job.status }}" >> $GITHUB_STEP_SUMMARY |