forked from pyenchant/pyenchant
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.21 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
name: tests
on: [push]
jobs:
run_tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: [3.5, 3.6, 3.7, 3.8, pypy3]
include:
- python: 3.5
tox_env: py35
- python: 3.6
tox_env: py36
- python: 3.7
tox_env: py37
- python: 3.8
tox_env: py38
- python: pypy3
tox_env: pypy3
- os: ubuntu-latest
platform: linux
- os: macos-latest
platform: macos
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install libenchant-dev (linux)
if: matrix.platform == 'linux'
run: |
sudo apt install libenchant-dev
- name: Install enchant (macOS)
if: matrix.platform == 'macos'
run: |
brew update
brew install enchant
- name: Install tox
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tests
run: |
tox -e ${{ matrix.tox_env }}