-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github actions & remove travis-ci config.
The number of keys in testBigGetMulti is reduced because the larger number doesn't work with memcached 1.6.12. For an unknown reason, get_multi() with more than 2186 keys here returns nothing.
- Loading branch information
Showing
3 changed files
with
53 additions
and
44 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- "*" | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
test: | ||
timeout-minutes: 10 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.6", "3.7", "3.8", "3.9", "pypy3"] | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
name: "${{ matrix.os }} Python: ${{ matrix.python-version }}" | ||
env: | ||
LIBMEMCACHED_VERSION: '1.0.18' | ||
services: | ||
memcached: | ||
image: memcached:1.6.12 | ||
ports: | ||
- 11211:11211 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
pip install nose | ||
sudo apt-get update -qq | ||
sudo apt-get install libmemcached-dev | ||
apt-cache show libmemcached-dev | ||
- name: memcached stats | ||
run: echo "stats settings" | netcat localhost 11211 -w 3 | ||
- name: Install package | ||
run: python setup.py install | ||
- name: Set LIBMEMCACHED_VERSION | ||
run: echo LIBMEMCACHED_VERSION="$(python -c 'import pylibmc; print(pylibmc.libmemcached_version)')" >> $GITHUB_ENV | ||
- name: Log versions | ||
run: | | ||
python --version | ||
pip --version | ||
echo "LIBMEMCACHED_VERSION=${LIBMEMCACHED_VERSION}" | ||
- name: Run test | ||
run: python bin/runtests.py -v tests --with-doctest |
This file was deleted.
Oops, something went wrong.
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