Update dependency loguru to v0.7.3 #1248
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: ci | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: set up python | |
uses: actions/setup-python@v5 | |
- name: cache python environment | |
uses: actions/cache@v4 | |
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: set up python 3.9 | |
uses: actions/setup-python@v5 | |
- name: cache python environment | |
uses: actions/cache@v4 | |
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: set up python 3.9 | |
uses: actions/setup-python@v5 | |
- name: cache python environment | |
uses: actions/cache@v4 | |
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: set up python 3.9 | |
uses: actions/setup-python@v5 | |
- name: cache python environment | |
uses: actions/cache@v4 | |
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 |