Skip to content

Fix removed importlib.resources.read_binary in Python 3.13 #616

Fix removed importlib.resources.read_binary in Python 3.13

Fix removed importlib.resources.read_binary in Python 3.13 #616

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
concurrency:
# prettier-ignore
group: >-
${{ github.workflow }}-
${{ github.ref_type }}-
${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
tests:
name: tests / ${{ matrix.os }} / ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [Windows, Ubuntu, MacOS]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
include:
# Only run PyPy jobs, on Ubuntu.
- os: Ubuntu
python-version: pypy-3.7
- os: Ubuntu
python-version: pypy-3.8
- os: Ubuntu
python-version: pypy-3.9
- os: Ubuntu
python-version: pypy-3.10
steps:
- uses: actions/checkout@v4
# Get Python to test against
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
# Setup pip's cache
- name: Save date (for cache)
id: date
run: echo "::set-output name=date::$(date +%F)"
- name: Save pip cache dir
id: pip-cache-dir
run: echo "::set-output name=dir::$(pip cache dir)"
- name: pip cache
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache-dir.outputs.dir }}
key: pip-v1-${{ runner.os }}-${{ steps.date.outputs.date }}
restore-keys: pip-v1-${{ runner.os }}
- run: pip install nox
# prettier-ignore
- run: >
nox
-s test
doctest
--error-on-missing-interpreters
env:
NOXFORCEPYTHON: ${{ matrix.python-version }}
if: ${{ !contains(matrix.python-version, 'pypy') }}
- run: nox --error-on-missing-interpreters -s test-pypy3 doctest-pypy3
if: ${{ contains(matrix.python-version, 'pypy') }}