Skip to content

Merge major-release into main & bump version number in setup.py (#938) #16

Merge major-release into main & bump version number in setup.py (#938)

Merge major-release into main & bump version number in setup.py (#938) #16

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", "major-release"]
push:
branches: ["main", "major-release"]
env:
TESTING: 1
jobs:
build:
strategy:
matrix:
limited-dependencies: ['','TRUE']
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
env:
PARSONS_LIMITED_DEPENDENCIES: ${{ matrix.limited-dependencies }}
run: |
python -m pip install .[all]
python -m pip install -r requirements-dev.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/