Skip to content

Merge pull request #11 from tsileo/fix-setup-cfg #22

Merge pull request #11 from tsileo/fix-setup-cfg

Merge pull request #11 from tsileo/fix-setup-cfg #22

name: Run tests
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
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 dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
- name: Test module setup
run: |
python setup.py install
cd tests # Switch folder to avoid conflicts between ./tls_parser and the installed tls_parser module
python ../sample.py
cd ..
python -m pip uninstall -y tls-parser
- name: Run tests and linters
run: |
python -m pip install -r requirements-dev.txt
python -m invoke test