mirror of
https://github.com/nfstream/nfstream.git
synced 2026-05-21 02:10:50 +00:00
30 lines
702 B
YAML
30 lines
702 B
YAML
name: Python package
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
max-parallel: 4
|
|
matrix:
|
|
python-version: [3.6, 3.7]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Installation
|
|
run: |
|
|
sudo apt-get install libpcap-dev automake
|
|
python -m pip install --upgrade pip
|
|
pip install wheel twine setuptools codecov
|
|
pip install -r requirements.txt
|
|
python setup.py bdist_wheel
|
|
ls dist/
|
|
- name: Testing
|
|
run: |
|
|
coverage run tests.py
|