Skip to content

[Snyk] Fix for 4 vulnerabilities #47

[Snyk] Fix for 4 vulnerabilities

[Snyk] Fix for 4 vulnerabilities #47

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Celery
on:
push:
branches: [ 'master']
paths:
- '**.py'
- '**.txt'
- '.github/workflows/python-package.yml'
- '**.toml'
pull_request:
branches: [ 'master']
paths:
- '**.py'
- '**.txt'
- '**.toml'
- '.github/workflows/python-package.yml'
jobs:
Unit:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', 'pypy-3.7', 'pypy-3.8']
os: ["ubuntu-20.04", "windows-latest"]
exclude:
- python-version: 'pypy-3.7'
os: "windows-latest"
- python-version: 'pypy-3.8'
os: "windows-latest"
steps:
- name: Install apt packages
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt update && sudo apt-get install -f libcurl4-openssl-dev libssl-dev gnutls-dev httping expect libmemcached-dev
- uses: actions/checkout@v2.4.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.2.2
with:
python-version: ${{ matrix.python-version }}
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: Cache
uses: actions/cache@v2.1.6
with:
path: ${{ steps.pip-cache.outputs.dir }}
key:
${{ matrix.python-version }}-${{matrix.os}}-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ matrix.python-version }}-${{matrix.os}}
- name: Install tox
run: python -m pip install --upgrade pip tox tox-gh-actions
- name: >
Run tox for
"${{ matrix.python-version }}-unit"
timeout-minutes: 20
run: |
tox --verbose --verbose
- uses: codecov/codecov-action@v2.1.0
with:
flags: unittests # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)