-
Notifications
You must be signed in to change notification settings - Fork 11
33 lines (28 loc) · 955 Bytes
/
tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Run tests
on: [pull_request, push]
jobs:
test:
strategy:
fail-fast: false
matrix:
python: [3.9, '3.10', 3.11, 3.12, 3.13, pypy-3.10]
name: ${{ matrix.python }}
runs-on: ubuntu-latest
env:
TERM: xterm-256color
# This is needed to avoid a terminfo-related crash when
# testing PyPy.
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
# Install dependencies. Test on Hy `master`, not the latest Hy
# release.
- run: pip install pytest setuptools wheel git+https://github.com/hylang/hy@master
# Be sure we're testing the installed version, instead of running
# from the source tree. Use `--no-build-isolation` to ensure
# Hy `master` is used to compile the bytecode.
- run: pip install . --no-build-isolation && rm -r hyrule
# Now we can run the tests.
- run: pytest