Add Events Helpers to PDI Connector (#865) #37
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 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/ |