Skip to content

Commit 31bd891

Browse files
bsamuel-uiAubtin
authored andcommitted
Add github actions based on dschep's fork
1 parent f1acff2 commit 31bd891

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Publish
2+
3+
on: [release]
4+
5+
jobs:
6+
publish-npm:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: actions/setup-node@v1
11+
with:
12+
version: 12
13+
registry-url: https://registry.npmjs.org/
14+
- run: npm publish
15+
env:
16+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.github/workflows/test.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ubuntu-latest, windows-latest, macOS-latest]
18+
python-version: [3.6, 3.7, 2.7]
19+
node-version: [8, 10, 12]
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v1
25+
with:
26+
version: ${{ matrix.python-version }}
27+
- name: Set up Node ${{ matrix.node-version }}
28+
uses: actions/setup-node@v1
29+
with:
30+
version: ${{ matrix.node-version }}
31+
- name: Install pipenv
32+
uses: dschep/install-pipenv-action@v1
33+
- name: Install poetry
34+
uses: dschep/[email protected]
35+
with:
36+
preview: false
37+
38+
- name: Install serverless
39+
run: npm install -g serverless
40+
41+
- name: Install deps
42+
run: npm install
43+
44+
- name: Lint
45+
run: npm run ci:lint
46+
47+
- name: Test
48+
run: |
49+
PATH=$HOME/.poetry/bin:$PATH \
50+
LC_ALL=C.UTF-8 \
51+
LANG=C.UTF-8 \
52+
npm run test
53+
env:
54+
RUNTIME: python${{ matrix.python-version }}

0 commit comments

Comments
 (0)