Skip to content

Merge pull request #9 from Younis-Ahmed/features.lintingPEP8 #17

Merge pull request #9 from Younis-Ahmed/features.lintingPEP8

Merge pull request #9 from Younis-Ahmed/features.lintingPEP8 #17

Workflow file for this run

name: Test Installation
on:
push:
branches:
- main
jobs:
test_installation:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-18.04]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-pip
sudo pip install bettyfixer
- name: Test Betty installed or not
run: |
command -v betty && echo "betty is installed" || echo "betty is not"
# - name: Create test files
# run: |
# echo -e "#include<stdio.h>\n\nint main(void) {\n return 0;\n}" > test.c
# - name: test the script
# run: |
# bettyfixer test.c
# cat test.c