Skip to content

Commit

Permalink
Add hard version limits to track in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alecbcs committed Nov 7, 2023
1 parent f9e2ce2 commit 7d80c8a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
name: Lint
name: Linting & Style Checks

on:
push:
branches: [ develop ]
branches:
- develop
pull_request:
branches: [ develop ]
branches:
- develop

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Set up Python 3.9
uses: actions/setup-python@v2
- name: Set up Python 3.11
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236
with:
python-version: 3.9
python-version: '3.11'
cache: 'pip'
cache-dependency-path: '.github/workflows/requirements/style.txt'

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install black
pip install flake8
pip install -r .github/workflows/requirements/style.txt
- name: Lint and Format Check with Flake8 and Black
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/requirements/style.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
black==23.10.1
flake8==6.1.0

0 comments on commit 7d80c8a

Please sign in to comment.