Automated Latest Dependency Updates (#28) #134
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: Lint Check | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
branches: | |
- main | |
jobs: | |
lint_check: | |
name: ${{ matrix.python_version }} lint check | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python_version: ["3.11"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- name: Set up python ${{ matrix.python_version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python_version }} | |
cache: 'pip' | |
cache-dependency-path: 'pyproject.toml' | |
- uses: actions/cache@v3 | |
id: cache | |
with: | |
path: ${{ env.pythonLocation }} | |
key: ${{ matrix.python_version }}-lint-${{ env.pythonLocation }}-${{ hashFiles('**/pyproject.toml') }}-v01 | |
- name: Install premium_primitives with dev and test requirements (not using cache) | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
python -m pip install -e .[dev] | |
- name: Install premium_primitives with no requirements (using cache) | |
if: steps.cache.outputs.cache-hit == 'true' | |
run: | | |
python -m pip install -e .[dev] --no-deps | |
- name: Run lint test | |
run: make lint |