Skip to content

Commit df31961

Browse files
authored
Migrate from CircleCI to GitHub Actions (#206)
* Initial checkin of GHA workflow * Remove circleci configuration
1 parent 1d52733 commit df31961

File tree

3 files changed

+49
-15
lines changed

3 files changed

+49
-15
lines changed

.circleci/config.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
# Special job which automatically cancels old runs for the same branch, prevents runs for the
7+
# same file set which has already passed, etc.
8+
pre_job:
9+
name: Skip Duplicate Jobs Pre Job
10+
runs-on: ubuntu-latest
11+
outputs:
12+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
13+
steps:
14+
- id: skip_check
15+
uses: fkirc/skip-duplicate-actions@4c656bbdb6906310fa6213604828008bc28fe55d # v3.3.0
16+
with:
17+
cancel_others: 'true'
18+
github_token: ${{ github.token }}
19+
20+
lint-checks:
21+
needs: pre_job
22+
name: Make requirements and lint check on Python3.6
23+
runs-on: ubuntu-18.04
24+
steps:
25+
- name: Checkout st2tests repository
26+
uses: actions/checkout@v2
27+
- name: Checkout st2 repository
28+
uses: actions/checkout@v2
29+
with:
30+
repository: "StackStorm/st2"
31+
- name: Set up Python3.6
32+
uses: actions/setup-python@v2
33+
with:
34+
python-version: '3.6.13'
35+
- name: Install apt dependencies
36+
run: |
37+
sudo apt install -y libldap2-dev libsasl2-dev
38+
- name: Install virtualenv
39+
run: |
40+
python3 -m pip install virtualenv
41+
- name: Make requirements
42+
timeout-minutes: 5
43+
run: |
44+
script -e -c "make requirements"
45+
- name: Make Lint
46+
timeout-minutes: 15
47+
run: |
48+
script -e -c "make lint"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ VIRTUALENV_DIR ?= virtualenv
66
BINARIES := bin
77

88
# All components are prefixed by st2
9-
COMPONENTS := $(wildcard /tmp/st2/st2*)
9+
COMPONENTS := $(wildcard st2/st2*)
1010

1111
# nasty hack to get a space into a variable
1212
space_char :=

0 commit comments

Comments
 (0)