jsonpickle: guard against invalid b85 and b64 data #194
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: Test | |
on: [push, pull_request] | |
env: | |
FORCE_COLOR: 1 | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
os: [ubuntu-22.04] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
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/cache@v4 | |
with: | |
path: ${{ steps.pip-cache.outputs.dir }} | |
key: | |
${{ matrix.os }}-${{ matrix.python-version }}-v1-${{ | |
hashFiles('**/setup.py') }} | |
restore-keys: | | |
${{ matrix.os }}-${{ matrix.python-version }}-v1- | |
- name: Install dependencies | |
run: | | |
python -m pip install -U pip | |
python -m pip install -U "tox>=4" | |
- name: Install gmpy2 dependencies | |
if: matrix.python-version == '3.11' || matrix.python-version == '3.12' | |
run: | | |
sudo apt-get -y update | |
sudo apt-get install -y libmpfr-dev libmpc-dev | |
- name: Tox tests | |
run: | | |
tox run |