Skip to content

Commit f4d42fc

Browse files
committed
Run tests on GraalPy 24.1.0
1 parent 5511adf commit f4d42fc

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,56 @@ jobs:
8080
include-hidden-files: true
8181
if-no-files-found: error
8282

83+
run-graalpy-tests:
84+
runs-on: ${{matrix.os}}
85+
strategy:
86+
matrix:
87+
os: [ubuntu-latest]
88+
version: ['3.11']
89+
include:
90+
- version: '3.11'
91+
graalpy-version: '24.1.0'
92+
tox-env: py311
93+
steps:
94+
- uses: actions/checkout@v4
95+
- uses: actions/setup-python@v5
96+
with:
97+
python-version: graalpy-${{ matrix.graalpy-version }}
98+
- name: Cache dependencies
99+
id: cache-deps
100+
uses: actions/cache@v4
101+
with:
102+
path: |
103+
.tox
104+
~/.cache/pip
105+
~/.cache/pypoetry
106+
~/.local/bin/poetry
107+
~/.local/share/pypoetry
108+
key: ${{ runner.os }}-graalpy-${{ matrix.version }}-poetry-${{ hashFiles('.github/workflows/run-tests.yml', 'pyproject.toml', 'tox.ini') }}
109+
- name: Install Poetry
110+
if: steps.cache-deps.outputs.cache-hit != 'true'
111+
run: curl -sSL https://install.python-poetry.org | python3 -
112+
- name: Install Tox
113+
run: |
114+
pip install -U pip
115+
pip install tox
116+
- name: Run tests
117+
env:
118+
TOX_PARALLEL_NO_SPINNER: 1
119+
TOX_SHOW_OUTPUT: "True"
120+
TOXENV: ${{ matrix.tox-env }}
121+
run: |
122+
tox run -- -n 2
123+
mkdir coverage
124+
mv .coverage.* "coverage/.coverage.pypy${{ matrix.version }}"
125+
- name: Archive code coverage results
126+
uses: actions/upload-artifact@v4
127+
with:
128+
name: code-coverage.graalpy${{ matrix.version }}
129+
path: coverage/.coverage.py*
130+
include-hidden-files: true
131+
if-no-files-found: error
132+
83133
run-pypy-tests:
84134
runs-on: ${{matrix.os}}
85135
strategy:

0 commit comments

Comments
 (0)