Skip to content

Commit

Permalink
Fixing actions
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonWilde committed Feb 28, 2024
1 parent 53f876f commit 258735c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/black_and_ruff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,35 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Run black
uses: psf/black@stable
- name: Setup python
id: setup-python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Load cached Poetry installation
id: cached-poetry
uses: actions/cache@v3
with:
jupyter: true
path: ~/.local
key: poetry-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
- name: Configure Poetry
run: poetry config virtualenvs.in-project true
- name: Load cached venv
id: cached-poetry-dependencies-3
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies-3.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root --with dev
- name: Install project
run: poetry install --no-interaction --with dev
- name: Run black
run: |
poetry run black --check .
- name: Run ruff
uses: chartboost/ruff-action@v1
2 changes: 1 addition & 1 deletion .github/workflows/dynamic_badges.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
id: setup-python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- name: Load cached Poetry installation
id: cached-poetry
uses: actions/cache@v3
Expand Down

0 comments on commit 258735c

Please sign in to comment.