Delete .github/ISSUE_TEMPLATE/feature_request.md #363
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: Test | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
#---------------------------------------------- | |
# check-out repo and set-up python | |
#---------------------------------------------- | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Set up python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
#---------------------------------------------- | |
# ----- install & configure poetry ----- | |
#---------------------------------------------- | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
#---------------------------------------------- | |
# load cached venv if cache exists | |
#---------------------------------------------- | |
- name: Load cached venv | |
id: cached-poetry-dependencies | |
uses: actions/cache@v2 | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} | |
#---------------------------------------------- | |
# install dependencies if cache does not exist | |
#---------------------------------------------- | |
- name: Install dependencies | |
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | |
run: poetry install --no-interaction --no-root --no-ansi | |
#---------------------------------------------- | |
# install your root project, if required | |
#---------------------------------------------- | |
- name: Install library | |
run: poetry install --no-interaction --no-ansi | |
#---------------------------------------------- | |
# Install required libraries for ImageQt | |
# This avoids: | |
# ImportError: cannot import name 'ImageQt' from 'PIL.ImageQt' | |
#---------------------------------------------- | |
- name: Install library | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libegl1 libgl1 libxkbcommon0 | |
#---------------------------------------------- | |
# run Lint tests | |
#---------------------------------------------- | |
- name: Lint | |
run: ./scripts/lint.sh | |
#---------------------------------------------- | |
# run test suite and output coverage file | |
#---------------------------------------------- | |
- name: Test | |
run: bash -c "poetry run pytest tests/ -s --cov=streamdeck_ui/ --cov-report=term-missing ${@-}" | |
#---------------------------------------------- | |
# generate coverage stats | |
#---------------------------------------------- | |
- name: Generate Coverage Report | |
run: poetry run coverage xml | |
#---------------------------------------------- | |
# upload coverage stats | |
#---------------------------------------------- | |
- name: Upload coverage | |
uses: codecov/codecov-action@v1 | |
with: | |
file: ./coverage.xml | |
fail_ci_if_error: true |