Skip to content

Commit dbd2717

Browse files
committed
Use Github actions instead of CircleCI/Appveyor
current drawbacks: - mac build fails due to `actions/setup-python` not working yet. ETA from github to fix is next week or so. - windows builds fail on poetry and a few tests other tests fail.. these other tests might be real windows bugs. appveyor is too broken to tell, I'll need to test on a windows box. - fails on node 12 w/strange errors
1 parent 7d3e263 commit dbd2717

File tree

11 files changed

+141
-601
lines changed

11 files changed

+141
-601
lines changed

.github/workflows/publish.yml

+16
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

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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@v1
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: true
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 lint
46+
47+
- name: Test
48+
run: npm t
49+
env:
50+
RUNTIME: python${{ matrix.python-version }}

appveyor.yml

-12
This file was deleted.

circle.yml

-50
This file was deleted.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "serverless-python-requirements",
33
"version": "5.0.0",
44
"engines": {
5-
"node": ">=6.0"
5+
"node": ">=8.0"
66
},
77
"description": "Serverless Python Requirements Plugin",
88
"author": "United Income <[email protected]>",

0 commit comments

Comments
 (0)