Add GitHub actions, unit tests and Pipenv support (#47) #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |