You've already forked OpenUxAS-bootstrap
mirror of
https://github.com/AdaCore/OpenUxAS-bootstrap.git
synced 2026-02-12 13:07:23 -08:00
Remove Travis config, since it's no longer needed. Improve the naming in the Checks workflow and tweak the formatting of the file. Also add python 3.7 to the checks. This matters because the anod build will use python 3.7
32 lines
878 B
YAML
32 lines
878 B
YAML
on: [push, pull_request]
|
|
name: Checks
|
|
jobs:
|
|
build:
|
|
name: All Checks
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: [3.7, 3.8]
|
|
runs-on: [ubuntu-latest]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install black flake8 flake8-bugbear flake8-builtins flake8-comprehensions flake8-docstrings flake8-rst-docstrings mypy
|
|
|
|
- name: Run black
|
|
run: black -q --diff --check anod install lib
|
|
|
|
- name: Run flake8
|
|
run: flake8 anod install lib
|
|
|
|
- name: Run mypy
|
|
run: mypy --config-file .mypy.ini anod install lib
|