Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from Jenkins -> GitHub Actions #71

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emmabh this can actually be removed; originally, when we had most of our projects on jenkins, this would ensure that a push to this repo would automatically update jenkins so that the internal syk command available on that jenkins instance was up to date. So the sudo make install command that was previously running on jenkins was just for that instance.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a-ha! that makes total sense, I was wondering why we had a cd that didn't go anywhere but it all makes sense now lol.

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Deploy
run: sudo make install
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI
on:
pull_request:
types: [opened, ready_for_review, synchronize]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.6

- name: Checkout repo
uses: actions/checkout@v2

- name: Install requirements from all requirements.txt files
run: |
INSTALL_COMMAND="pip install"
for file in sykle/plugins/**/requirements.txt; do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 nice little bash snippet

if [ ! -e "$file" ]; then continue; fi
INSTALL_COMMAND="$INSTALL_COMMAND -r $file"
done
eval $INSTALL_COMMAND

- name: Test
run: python -m setup.py nosetests
1 change: 1 addition & 0 deletions sykle/plugins/scm/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
PyGithub==1.43.8
GitPython==3.0.2
gitdb2==2.0.6