Skip to content

Commit dd9eea4

Browse files
authored
Merge pull request #224 from graingert/gha
2 parents 486f9e5 + 8a6c7b5 commit dd9eea4

File tree

3 files changed

+35
-32
lines changed

3 files changed

+35
-32
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,40 @@
1-
# This is a basic workflow to help you get started with Actions
2-
31
name: CI
4-
5-
# Controls when the action will run. Triggers the workflow on push or pull request
6-
# events but only for the master branch
72
on:
83
push:
9-
branches: [master]
4+
branches:
5+
- master
6+
tags:
7+
- v*
108
pull_request:
11-
branches: [master]
129

13-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1410
jobs:
15-
# This workflow contains a single job called "build"
16-
build:
17-
# The type of runner that the job will run on
18-
runs-on: ubuntu-latest
11+
modernize:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version: [3.6, 3.7, 3.8]
17+
os: [macOS-latest, ubuntu-latest, windows-latest]
1918

20-
# Steps represent a sequence of tasks that will be executed as part of the job
2119
steps:
22-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23-
- uses: actions/checkout@v2
20+
- name: Checkout
21+
uses: actions/checkout@v2
2422

25-
# Runs a single command using the runners shell
26-
- name: Run a one-line script
27-
run: echo Hello, world!
23+
- name: Set Up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: ${{ matrix.python-version }}
2827

29-
# Runs a set of commands using the runners shell
30-
- name: Run a multi-line script
28+
- name: Set Up Node for prettier
29+
uses: actions/setup-node@v1
30+
with:
31+
node-version: 14.x
32+
33+
- name: Install
3134
run: |
32-
echo Add other actions to build,
33-
echo test, and deploy your project.
35+
pip install tox
36+
37+
- name: tox
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
run: tox -e py,lint,coveralls

.travis.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
sudo: false
22
language: python
3-
matrix:
4-
include:
5-
- python: "3.6"
6-
env: TOXENV=py36,lint,coveralls
7-
- python: "3.7"
8-
env: TOXENV=py37,lint,coveralls
9-
- python: "3.8"
10-
env: TOXENV=py38,lint,coveralls
3+
python:
4+
- "3.6"
5+
- "3.7"
6+
- "3.8"
117
install:
128
- nvm install 14
139
- pip install tox
14-
script: tox
10+
script: tox -e py,lint,coveralls
1511
cache:
1612
pip: true
1713
directories:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ commands =
1010
coverage run --branch --source=libmodernize setup.py test {posargs}
1111

1212
[testenv:coveralls]
13-
passenv = TRAVIS TRAVIS_*
13+
passenv = TRAVIS TRAVIS_* GITHUB_*
1414
deps =
1515
coveralls
1616
commands = coveralls

0 commit comments

Comments
 (0)