test(jobs, taxonomy): fix failing tests #446
Workflow file for this run
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: jobs linters and tests | |
on: | |
push: | |
paths: | |
- jobs/** | |
- .github/worlflows/jobs.yml | |
pull_request: | |
paths: | |
- jobs/** | |
- .github/worlflows/jobs.yml | |
jobs: | |
jobs-linters-and-tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ "3.8.15" ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
working-directory: ./jobs | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry>=1.1.13 | |
poetry install --no-root | |
poetry add ../lib/filter_lib | |
poetry add ../lib/tenants | |
poetry run pytest | |
- name: Run linters and checkers [flake8 -> isort -> black] | |
working-directory: ./jobs | |
run: | | |
poetry run flake8 --extend-ignore=E203 jobs/ | |
poetry run isort --profile=black --line-length=79 --check-only jobs/ | |
poetry run black --check --line-length=79 jobs | |
- name: Run tests | |
working-directory: ./jobs | |
run: | | |
poetry run pytest tests/ |