2021-05-30 04:24:12 +00:00
|
|
|
name: Python Checks
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
testing:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-versions: [3.8,3.9]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install pwncat
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install flake8 pytest
|
|
|
|
pip install -r requirements.txt
|
2021-05-30 04:43:20 +00:00
|
|
|
python setup.py install
|
2021-05-30 04:24:12 +00:00
|
|
|
# - name: Lint with flake8
|
|
|
|
# run: |
|
|
|
|
# flake8
|
|
|
|
- name: Test with pytest
|
|
|
|
run: |
|
|
|
|
pytest
|