Skip to content

Add MobileCommons Connector #144

Add MobileCommons Connector

Add MobileCommons Connector #144

Workflow file for this run

name: tests for mac
# test mac on single python version as mac tests use 10x minutes/storage
on:
pull_request:
branches: ["main"]
push:
branches: ["main"]
env:
TESTING: 1
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- uses: actions/cache@v3
with:
path: ~/Library/Caches/pip
key: mac-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
mac-pip-
- name: Install dependencies
run: python -m pip install -r requirements.txt
- name: Run tests
run: TESTING=1 pytest -rf test/
- name: check linting
run: |
# E203 and W503 don't work well with black
flake8 parsons/ test/ useful_resources/ --extend-ignore=E203,W503
black --check parsons/ test/ useful_resources/