Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add pip depencency caching, don't run on doc changes, update setup-python to v4 #174

Merged
merged 2 commits into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
name: Build and Test
on:
push:
paths-ignore: ['docs/**', '**.rst', '**.md']
pull_request:
paths-ignore: ['docs/**', '**.rst', '**.md']
workflow_dispatch:
schedule:
- cron: '0 6 * * 1'
Expand All @@ -26,9 +28,11 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- name: Install dependencies
run: |
pip install --upgrade pip
Expand All @@ -47,7 +51,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- run: pip install flake8
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Build distribution
on:
push:
paths-ignore: ['docs/**', '**.rst', '**.md']
pull_request:
paths-ignore: ['docs/**', '**.rst', '**.md']
workflow_dispatch:
schedule:
- cron: '0 6 * * 1'
Expand All @@ -15,7 +17,7 @@ jobs:
uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: "3.10"

Expand Down