-
Notifications
You must be signed in to change notification settings - Fork 7
33 lines (31 loc) · 830 Bytes
/
actions.yaml
File metadata and controls
33 lines (31 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Black, Flake, Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
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 update
sudo apt-get install libcairo2-dev 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