assets precommit and test #628
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: assets precommit and test | |
run-name: assets precommit and test | |
on: | |
push: | |
paths: | |
- 'assets/**' | |
- '.github/workflows/assets.yml' | |
pull_request: | |
paths: | |
- 'assets/**' | |
- '.github/workflows/assets.yml' | |
jobs: | |
assets-pre-commit-actions: | |
strategy: | |
matrix: | |
python-version: [ "3.8.15" ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- run: pip install flake8 | |
- run: flake8 --extend-ignore=E203 assets | |
assets-build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ "3.8.15" ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
cd assets | |
sudo apt-get update && sudo apt-get -y install poppler-utils | |
pip install poetry>=1.1.13 | |
poetry install --no-root --no-interaction | |
poetry add ../lib/filter_lib | |
poetry add ../lib/tenants | |
- name: Test with pytest | |
run: | | |
cd assets | |
poetry run pytest |