diff --git a/.github/workflows/build_test_publish_arm64.yml b/.github/workflows/build_test_publish_arm64.yml index 24455b0..1060fdf 100644 --- a/.github/workflows/build_test_publish_arm64.yml +++ b/.github/workflows/build_test_publish_arm64.yml @@ -17,37 +17,10 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["pypy-3.7", - "pypy-3.6", - "3.10", - "3.9", - "3.8", - "3.7", - "3.6"] + python-version: ["python3.8"] steps: - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - # Caching improves build time, we use pythonLocation to cache everything including wheels to avoid building - # wheels at each build (pandas/Pypy is extremely time consuming) - # sed replacement is performed to rectify PyPy path which ends with /bin - # cache key takes into account the Python version of the runner to avoid version mismatch on updates. - - name: Get pip cache path - id: get-pip-path - run: | - python -c "import sys; print(sys.version)" - id=$(echo ${{ env.pythonLocation }} | sed 's/\/bin//g') - echo "::set-output name=id::$id" - - - name: Pip cache - uses: actions/cache@v2 - id: pip-cache - with: - path: ${{ steps.get-pip-path.outputs.id }} - key: ${{ steps.get-pip-path.outputs.id }}-${{ hashFiles('setup.py') }}-${{ hashFiles('dev_requirements.txt') }} - name: Install Prerequisites run: | @@ -56,9 +29,8 @@ jobs: sudo apt-get install libusb-1.0-0-dev libdbus-glib-1-dev libbluetooth-dev libnl-genl-3-dev flex bison - name: Installing NFStream requirements - if: steps.pip-cache.outputs.cache-hit != 'true' run: | - pip install -r dev_requirements.txt + ${{ matrix.python-version }} -m pip install -r dev_requirements.txt - name: Build Engine dependencies run: | @@ -96,7 +68,7 @@ jobs: sudo cp src/lib/libndpi.a /usr/local/lib/libndpi.a cd .. rm -rf nDPI - python setup.py bdist_wheel + ${{ matrix.python-version }} setup.py bdist_wheel - name: Generated wheel run: | @@ -104,8 +76,8 @@ jobs: - name: Testing and coverage report generation run: | - python -m coverage run tests.py - python -m coverage combine + ${{ matrix.python-version }} -m coverage run tests.py + ${{ matrix.python-version }} -m coverage combine - name: Upload coverage to Codecov uses: codecov/codecov-action@v1