Skip to content

Add GitHub actions, unit tests and Pipenv support (#47) #3

Add GitHub actions, unit tests and Pipenv support (#47)

Add GitHub actions, unit tests and Pipenv support (#47) #3

Workflow file for this run

name: Black, Flake, Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install libgirepository1.0-dev
python -m pip install --upgrade pip
pip install pipenv
pipenv install --dev
- name: Run black
run: pipenv run black
- name: Run flake8
run: pipenv run flake
- name: Run tests
run: pipenv run test