-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·22 lines (15 loc) · 713 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -e
# compile and test the app for the current python version
# what version is this?
python3 --version
# restore dependencies & create an venv if needed
poetry install
# load the current python virtual environment - assumes you have already probably run "poetry shell" or are calling from build-python-versions.sh
source .venv/bin/activate
# Check the CLI actually runs as a basic CLI app
poetry run imap-mag hello world
# tidy up fomatting and check syntax
poetry run ruff check --fix
# execute unit tests with code coverage
poetry run pytest -s --cov-config=.coveragerc --cov=src --cov-append --cov-report=xml --cov-report term-missing --cov-report=html --junitxml=test-results.xml tests