Skip to content

Commit

Permalink
Adding Cache in GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Jun 3, 2024
1 parent 16faa13 commit 671aeb5
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/cache-1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: Linting with matrix
on:
- push
- workflow_dispatch

jobs:
linting-matrix:

strategy:
matrix:
python-version: ["3.12"]
platform: ["ubuntu-22.04"]
runs-on: "${{ matrix.platform }}"

steps:
# Checkout this repository
- uses: actions/checkout@v4

# Setup the specified Python version
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- run: |
echo "Running on ${{ matrix.platform }}"
python3 --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r ./requirements.txt
- name: Linting (pylama)
run: pylama .

- name: Linting (black)
run: black --check .

0 comments on commit 671aeb5

Please sign in to comment.