Skip to content

Commit

Permalink
actions: latest version of setup python, with caching
Browse files Browse the repository at this point in the history
ie stop using actions/cache
  • Loading branch information
jarofgreen committed Dec 12, 2024
1 parent e29ab09 commit d58f82a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.12
architecture: x64
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements_dev.txt') }}-${{ matrix.python-version }}
restore-keys: |
${{ runner.os }}-pip-
cache: 'pipenv'
cache-dependency-path: 'setup.py'
- run: pip install --upgrade -r requirements_dev.txt
- run: black --check *.py */
- run: isort --check-only *.py */
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
cache: 'pipenv'
cache-dependency-path: 'setup.py'
- name: Install normal dependencies
run: pip install -r requirements_dev.txt
- run: pip install 'jsonref${{ matrix.jsonref-version }}'
Expand Down

0 comments on commit d58f82a

Please sign in to comment.