Skip to content

Commit 6140f04

Browse files
hugovkambv
authored andcommitted
Test Windows, macOS and Linux on GitHub Actions (#1085)
1 parent f2203a7 commit 6140f04

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
python-version: [3.6, 3.7]
12+
os: [ubuntu-latest, macOS-latest, windows-latest]
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v1
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
python -m pip install --upgrade coverage
26+
python -m pip install -e ".[d]"
27+
28+
- name: Unit tests
29+
run: |
30+
coverage run tests/test_black.py

0 commit comments

Comments
 (0)