-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 958 Bytes
/
python.yml
File metadata and controls
33 lines (30 loc) · 958 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: Run Unit Tests
on: [push,]
defaults:
run:
working-directory: src
jobs:
build:
name: Build, lint, and test on Python ${{ matrix.python-version}} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.9"]
os: [ubuntu-latest]
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Use Python ${{ matrix.python-version}}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version}}
- name: Install app dependencies
run: |
sudo add-apt-repository ppa:deadsnakes/ppa -y
sudo apt install --no-install-recommends python3.9
python3.9 -m pip install pipenv
pipenv install --dev
- name: Ensure code quality with Black
run: pipenv run black mfcrypt -l 79 --check
- name: Test application units
run: pipenv run pytest -v