Support docs url prefix #1671
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: Python CI Check | |
on: | |
push: | |
branches: [ master, develop, pre_*, ft_* ] | |
pull_request: | |
branches: [ master, develop, pre_*, ft_* ] | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.8.10] | |
poetry-version: [1.4.2] | |
os: [ubuntu-20.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry==${{ matrix.poetry-version }} | |
- name: Export requirements.txt | |
run: poetry export -f requirements.txt --dev --without-hashes -o requirements.txt --no-ansi | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
cache-dependency-path: 'requirements.txt' | |
- name: Install dependencies | |
run: pip install -r requirements.txt -i https://pypi.org/simple/ | |
- name: Lint with flake8 | |
run: pflake8 src/ --config=pyproject.toml | |
- name: Lint with mypy | |
run: mypy src/ --config-file=pyproject.toml |