Skip to content

SCALRCORE-33689: Remove Deprecated set-output From Workflows #11

SCALRCORE-33689: Remove Deprecated set-output From Workflows

SCALRCORE-33689: Remove Deprecated set-output From Workflows #11

Workflow file for this run

# 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', '5.2']
paths:
- '**.py'
- '**.txt'
- '.github/workflows/python-package.yml'
- '**.toml'
pull_request:
branches: [ 'master', '5.2']
paths:
- '**.py'
- '**.txt'
- '**.toml'
- '.github/workflows/python-package.yml'
jobs:
Unit:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.10' ]
os: ["ubuntu-20.04"]
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/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Get pip cache dir
id: pip-cache
run: |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: Cache
uses: actions/[email protected]
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