Skip to content

Commit

Permalink
ci: test with CPython latest sources
Browse files Browse the repository at this point in the history
  • Loading branch information
P403n1x87 committed Aug 28, 2023
1 parent 29275a1 commit 54d4e1a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,38 @@ jobs:
# env:
# CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

tests-linux-python-src:
runs-on: ubuntu-20.04
strategy:
fail-fast: false

name: Tests with Python 3.13 on ubuntu-20.04
steps:
- uses: actions/checkout@v2

- name: Checkout Python repository
uses: actions/checkout@v2
with:
repository: vstinner/cpython
ref: dict_struct
path: cpython

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libunwind-dev lzma-dev
pip install hatch
- name: Compile and install Python
run: |
cd cpython
./configure
make -j 2
sudo make install
- name: Run tests
run: sudo -E env PATH="$PATH" hatch -e "tests.py3.13" run tests

tests-macos:
runs-on: macos-latest
strategy:
Expand Down
5 changes: 4 additions & 1 deletion echion/mirrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
#include <dictobject.h>
#include <setobject.h>

#if PY_VERSION_HEX >= 0x030b0000
#if PY_VERSION_HEX >= 0x030d0000
#define Py_BUILD_CORE
#include <pycore_dict_struct.h>
#elif PY_VERSION_HEX >= 0x030b0000
#define Py_BUILD_CORE
#include <internal/pycore_dict.h>
#else
Expand Down

0 comments on commit 54d4e1a

Please sign in to comment.