Skip to content

Merge pull request #6 from erhosen-libs/dependabot/pip/black-24.3.0 #55

Merge pull request #6 from erhosen-libs/dependabot/pip/black-24.3.0

Merge pull request #6 from erhosen-libs/dependabot/pip/black-24.3.0 #55

Workflow file for this run

name: Build
on: push
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Linting
run: |
pip install pre-commit
pre-commit run --all-files
pytest:
name: test
needs: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Run pytest
run: |
poetry run pytest --cov=redis_index --cov-report=xml tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.xml