2021-01-08 05:41:56 +01:00
|
|
|
name: Jetforce
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2022-02-19 20:33:25 +01:00
|
|
|
python-version: [ "3.7", "3.8", "3.9", "3.10" ]
|
2021-01-08 05:41:56 +01:00
|
|
|
steps:
|
|
|
|
- name: Check out repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install packages
|
|
|
|
run: |
|
|
|
|
pip install .
|
|
|
|
pip install mypy pytest
|
2022-02-19 20:33:25 +01:00
|
|
|
mypy --install-types --non-interactive
|
2021-01-08 05:41:56 +01:00
|
|
|
- name: Check types
|
|
|
|
run: |
|
|
|
|
mypy --ignore-missing-imports jetforce/
|
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
pytest -v tests/
|