Skip to content

Tests Ubuntu

Tests Ubuntu #8

name: Tests Ubuntu
on:
workflow_dispatch:
inputs:
log_level:
description: "Log level"
required: false
default: "warning"
type: choice
options:
- error
- warning
- info
- debug
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
jobs:
unittest:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
include:
- os: ubuntu-latest
path: ~/.cache/pip
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.7
architecture: x64
- uses: actions/cache@v3
id: cache-pip
with:
path: ${{ matrix.path }}
key: ${{ runner.os }}-pip-cache-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-cache
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install Repo Code
run: pip install -e .[dev]
- name: Run unit tests
run: python -m pytest --capture=fd .