Merge pull request #699 from NextCenturyCorporation/development #24
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: Tests | |
on: | |
push: | |
branches: | |
master | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-versions: [3.7, 3.8, 3.9] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Install Python 3 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-versions }} | |
- name: Install Geos for Mac | |
if: runner.os == 'macos' | |
run: brew install geos | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install -r requirements.txt | |
- name: Run unit tests | |
run: python -m unittest | |
- name: Flake8 | |
run: flake8 | |
- name: Autopep8 | |
run: autopep8 --in-place --aggressive --recursive machine_common_sense |