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 all 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
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