Skip to content

Update dependency pytest to v7.4.3 #791

Update dependency pytest to v7.4.3

Update dependency pytest to v7.4.3 #791

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
black:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: set up python
uses: actions/setup-python@v4
- name: cache python environment
uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-2${{ hashFiles('requirements.txt') }}
- name: pip install
run: |
pip install -r requirements.txt
- name: black booklog
run: black booklog
- name: black tests
run: black tests
mypy:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: set up python 3.9
uses: actions/setup-python@v4
- name: cache python environment
uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-2${{ hashFiles('requirements.txt') }}
- name: pip install
run: |
pip install -r requirements.txt
- name: mypy booklog tests
run: mypy booklog tests
flake8:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: set up python 3.9
uses: actions/setup-python@v4
- name: cache python environment
uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-2${{ hashFiles('requirements.txt') }}
- name: pip install
run: |
pip install -r requirements.txt
- name: flake8 booklog
run: |
flake8 booklog --count --show-source --statistics
- name: flake8 tests
run: |
flake8 tests --count --show-source --statistics
pytest:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: set up python 3.9
uses: actions/setup-python@v4
- name: cache python environment
uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-2${{ hashFiles('requirements.txt') }}
- name: pip install
run: |
pip install -r requirements.txt
- name: pytest
run: |
pytest
vale:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Vale
uses: errata-ai/[email protected]
with:
# Optional
files: reviews
env:
# Required, set by GitHub actions automatically:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}