[INTERNAL] PLAT-2839 - Fix pylint memory leaks + parallelize #456
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: Unit Tests | |
on: [push] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: | |
# These have to be strings, as, e.g., 3.10 and 3.1 are NOT the same. | |
- "3.9" | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install gretel-synthetics | |
run: pip install -e .[all,test] --use-deprecated=legacy-resolver | |
- name: Lint | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 --count --select=E9,F63,F7,F82 --show-source --statistics src/ | |
# exit-zero treats all errors as warnings. | |
flake8 --count --exit-zero --max-complexity=30 --max-line-length=120 --statistics src/ | |
- name: Test | |
run: pytest -s -vv --cov src --cov-report term-missing tests/ |