-
Notifications
You must be signed in to change notification settings - Fork 97
62 lines (53 loc) · 1.37 KB
/
tests.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: tests
on:
push:
branches: [main]
tags: v*
pull_request:
jobs:
run_tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev", "pypy-3.8"]
include:
- python: "3.7"
tox_env: "py37"
- python: "3.8"
tox_env: "py38"
- python: "3.9"
tox_env: "py39"
- python: "3.10"
tox_env: "py310"
- python: "3.11"
tox_env: "py311"
- python: "3.12-dev"
tox_env: "py312"
- python: "pypy-3.8"
tox_env: "pypy3"
- os: ubuntu-latest
platform: linux
- os: macos-latest
platform: macos
steps:
- uses: actions/checkout@v2.3.3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2.3.1
with:
python-version: ${{ matrix.python }}
- name: Install libenchant-dev (linux)
if: matrix.platform == 'linux'
run: |
sudo apt install libenchant-2-dev
- name: Install enchant (macOS)
if: matrix.platform == 'macos'
run: |
brew install enchant
- name: Install tox
run: |
pip install tox
- name: Run tests
run: |
tox -e ${{ matrix.tox_env }}