Skip to content

Commit

Permalink
CI: skip tests on documentation changes
Browse files Browse the repository at this point in the history
The Sage jobs are expensive thus they are not run when the example
projects are touched. They are also not run on branches other than
main and the release branches.

Signed-off-by: Filipe Laíns <lains@riseup.net>
  • Loading branch information
FFY00 authored and dnicolodi committed Nov 20, 2022
1 parent 8201c60 commit dc3aac0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci-sage.yml → .github/workflows/sage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Sage CI for Linux
name: sage

## This GitHub Actions workflow provides:
##
Expand Down Expand Up @@ -35,14 +35,18 @@ name: Run Sage CI for Linux
## systems/configurations.

on:
pull_request:
branches:
- main
- release-*
push:
pull_request:
branches:
- main
- release-*
paths-ignore:
# This is spelt like this to do not ignore the docs/examples/ folder.
- docs/*
- docs/usage/*
- CHANGELOG.rst
- LICENSE
- README.md
workflow_dispatch:
# Allow to run manually

Expand All @@ -52,10 +56,9 @@ concurrency:

env:
# Ubuntu packages to install so that the project's can build an sdist
DIST_PREREQ: python3-pip
DIST_PREREQ: python3-pip
# Name of this project in the Sage distribution
SPKG: meson_python
## REMOVE_PATCHES: "*"
SPKG: meson_python

jobs:

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ on:
branches:
- main
- release-*
paths-ignore:
# This is spelt like this to do not ignore the docs/examples/ folder.
- docs/*
- docs/usage/*
- CHANGELOG.rst
- LICENSE
- README.md
workflow_dispatch:
# Allow to run manually

Expand Down

0 comments on commit dc3aac0

Please sign in to comment.