bump version 1.4.6 (#129) #115
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
unittest: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
compiler: ["gcc", "clang"] | |
build_type: ["Debug", "Release"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install valgrind memcached g++ | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.pyver }} | |
- name: Install python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools future pytest greenify gevent numpy | |
- name: Start memcached servers | |
run: ./misc/memcached_server startall | |
- name: Run unittest | |
run: | | |
if [[ ${{ matrix.compiler }} = "gcc" ]]; then export CC=gcc CXX=g++; fi | |
if [[ ${{ matrix.compiler }} = "clang" ]]; then export CC=clang CXX=clang++; fi | |
./misc/travis/unittest.sh | |
- name: Stop memcached servers | |
run: ./misc/memcached_server stopall | |
benchmark: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
pyver: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install memcached libmemcached-dev g++ | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.pyver }} | |
- name: Install python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools future python-memcached pylibmc | |
- name: Start memcached servers | |
run: ./misc/memcached_server start | |
- name: Run benchmark | |
run: | | |
./misc/travis/benchmark.sh | |
- name: Stop memcached servers | |
run: ./misc/memcached_server stop |