Add a history and average of the last X code execution times #130
Workflow file for this run
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: Static Analysis & Test | |
on: [push, pull_request] | |
jobs: | |
static-analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install tox | |
- name: Lint with flake8 | |
run: tox -e flake8 | |
- name: Format with black | |
run: tox -e black | |
- name: Py 2 and 3 compatibility | |
run: tox -e modernize | |
test: | |
strategy: | |
matrix: | |
os: ['ubuntu-latest'] | |
python: [3.7, 3.8, 3.9] | |
# Works around the depreciation of python 3.6 for ubuntu | |
# https://github.com/actions/setup-python/issues/544 | |
include: | |
- os: 'ubuntu-20.04' | |
python: 3.6 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install tox | |
- name: Run Tox | |
run: | | |
tox -e py |