Skip to content

Commit

Permalink
#7: Fixes related to GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
blackandred committed Nov 14, 2020
1 parent 329dd81 commit e58cb94
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/test-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
python-version: 3.8

- name: Install dependencies
run: "pip install -r ./requirements.txt && pip install -r ./requirements-dev.txt && sudo apt-get install whois"
run: "pip install -r ./requirements-dev.txt && sudo apt-get install whois"

- name: Install project via setuptools
run: "rkd :install"
Expand All @@ -24,3 +24,21 @@ jobs:

- name: Run functional tests
run: "rkd :test:functional"

release:
needs: [build]
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
run: "pip install -r ./requirements.txt && pip install -r ./requirements-dev.txt && sudo apt-get install whois sshpass"

#- name: Release to docker registry
# run: "rkd :release"
1 change: 1 addition & 0 deletions .rkd/makefile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ tasks:
:install:
description: Install via setuptools
steps:
- pip install -r ./requirements.txt
- python3 ./setup.py install

:image:
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ From sources:

```bash
# from this directory
make install
rkd :install

infracheck --help
```
Expand All @@ -40,3 +40,9 @@ pip install infracheck

infracheck --help
```

External dependencies
---------------------

- **whois** commandline tool (`apt-get install whois`)
- **sshpass** (`apt-get install sshpass`)

0 comments on commit e58cb94

Please sign in to comment.