Skip to content

Commit

Permalink
+= bash tests - kamangir/bolt#746
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Apr 8, 2024
1 parent 6ddb161 commit 4532a27
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/bashtest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#! /usr/bin/env bash

function runme() {
# set -x # verbose-mode

python -m pip install --upgrade pip
pip3 install -e .
pip3 install -r requirements.txt

local git_root="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
for i in {1..3}; do
git_root=$(dirname $git_root)
done
echo "git_root: $git_root"

pushd $git_root >/dev/null
git clone https://github.com/kamangir/awesome-bash-cli.git
cd awesome-bash-cli
pip3 install -e .
pip3 install -r requirements.txt
popd >/dev/null

source $git_root/awesome-bash-cli/bash/abcli.sh ~terraform

ferfereh test "$@"

return
}

runme "$@"
16 changes: 16 additions & 0 deletions .github/workflows/bashtest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: bashtest

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Run bash tests
run: |
./.github/workflows/bashtest.sh
2 changes: 1 addition & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pylint
name: pylint

on: [push]

Expand Down
2 changes: 1 addition & 1 deletion ferfereh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

DESCRIPTION = f"{ICON} 3d-printed graffiti"

VERSION = "1.113.1"
VERSION = "1.114.1"

0 comments on commit 4532a27

Please sign in to comment.