80
80
include-hidden-files : true
81
81
if-no-files-found : error
82
82
83
+ # Neither Tox nor Poetry have any real support for GraalPy right now, so we're
84
+ # just installing using GraalPy's pip and running PyTest manually in the runner.
83
85
run-graalpy-tests :
84
86
runs-on : ${{matrix.os}}
85
87
strategy :
89
91
include :
90
92
- version : ' 3.11'
91
93
graalpy-version : ' 24.1.0'
92
- tox-env : py311
93
94
steps :
94
95
- uses : actions/checkout@v4
95
96
- uses : actions/setup-python@v5
@@ -100,35 +101,15 @@ jobs:
100
101
uses : actions/cache@v4
101
102
with :
102
103
path : |
103
- .tox
104
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
105
+ key : ${{ runner.os }}-graalpy-${{ matrix.version }}-pip-${{ hashFiles('.github/workflows/run-tests.yml', 'pyproject.toml', 'tox.ini') }}
106
+ - name : Install Basilisp
113
107
run : |
114
108
pip install -U pip
115
- pip install tox
109
+ pip install "pytest>=7.0.0,<9.0.0" "pygments"
116
110
- name : Run tests
117
- env :
118
- TOX_PARALLEL_NO_SPINNER : 1
119
- TOX_SHOW_OUTPUT : " True"
120
- TOXENV : ${{ matrix.tox-env }}
121
111
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
112
+ pytest --import-mode=importlib
132
113
133
114
run-pypy-tests :
134
115
runs-on : ${{matrix.os}}
0 commit comments