Skip to content

Commit d0954dc

Browse files
authored
Avoid unrelated CI test for doc changes, and cache using setup-python action (#106)
* ci: do not run test.yml on doc changes * ci: Cache using setup-python action * Update CHANGES.rst
1 parent a116dff commit d0954dc

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: Test
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
paths-ignore:
5+
- 'doc/**'
6+
pull_request:
7+
paths-ignore:
8+
- 'doc/**'
39

410
concurrency:
511
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
@@ -25,20 +31,12 @@ jobs:
2531
with:
2632
fetch-depth: 1
2733

28-
- name: pycache
29-
uses: actions/cache@v4
30-
id: pycache
31-
with:
32-
path: ~/.cache/pip
33-
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
34-
restore-keys: |
35-
${{ runner.os }}-pip-
36-
3734
- name: Setup python ${{ matrix.python-version }}
3835
uses: actions/setup-python@v5
3936
with:
4037
python-version: ${{ matrix.python-version }}
4138
allow-prereleases: true
39+
cache: 'pip'
4240

4341
- name: Install tox and test related
4442
run: |

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ CHANGES
88
Environments
99
------------
1010

11+
* Avoid unrelated CI test for doc changes, and cache using setup-python action by @rffontenelle in https://github.com/sphinx-doc/sphinx-intl/pull/106
12+
1113
Incompatibility
1214
---------------
1315

0 commit comments

Comments
 (0)