Skip to content

Commit

Permalink
Avoid unrelated CI test for doc changes, and cache using setup-python…
Browse files Browse the repository at this point in the history
… action (#106)

* ci: do not run test.yml on doc changes

* ci: Cache using setup-python action

* Update CHANGES.rst
  • Loading branch information
rffontenelle authored Nov 2, 2024
1 parent a116dff commit d0954dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Test
on: [push, pull_request]
on:
push:
paths-ignore:
- 'doc/**'
pull_request:
paths-ignore:
- 'doc/**'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
Expand All @@ -25,20 +31,12 @@ jobs:
with:
fetch-depth: 1

- name: pycache
uses: actions/cache@v4
id: pycache
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: 'pip'

- name: Install tox and test related
run: |
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ CHANGES
Environments
------------

* 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

Incompatibility
---------------

Expand Down

0 comments on commit d0954dc

Please sign in to comment.