Skip to content

Commit

Permalink
Update GHA to use latest actions, and cache pip.
Browse files Browse the repository at this point in the history
Use defaults for py-actions/py-dependency-install
  • Loading branch information
mauritsvanrees committed Apr 13, 2022
1 parent f11329f commit bef1ef8
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 28 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/bare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,18 @@ jobs:
run: |
sudo locale-gen nl_NL@euro
sudo update-locale
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: "Install Python dependencies (pip)"
uses: "py-actions/py-dependency-install@v2"
uses: "py-actions/py-dependency-install@v3"
with:
path: "requirements.txt"
update-setuptools: "false"
update-pip: "true"
update-wheel: "true"
- name: Cache eggs
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
eggs
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/ecosystem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,18 @@ jobs:
- "3.9"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: "Install Python dependencies (pip)"
uses: "py-actions/py-dependency-install@v2"
uses: "py-actions/py-dependency-install@v3"
with:
path: "requirements.txt"
update-setuptools: "false"
update-pip: "true"
update-wheel: "true"
- name: Cache eggs
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
eggs
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/run-buildout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,18 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: "Install Python dependencies (pip)"
uses: "py-actions/py-dependency-install@v2"
uses: "py-actions/py-dependency-install@v3"
with:
path: "requirements.txt"
update-setuptools: "false"
update-pip: "true"
update-wheel: "true"
- name: Cache eggs
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
eggs
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/versioncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ matrix.branch }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: "Install Python dependencies (pip)"
uses: "py-actions/py-dependency-install@v2"
uses: "py-actions/py-dependency-install@v3"
with:
path: "requirements.txt"
update-setuptools: "false"
update-pip: "true"
update-wheel: "true"
- name: Cache eggs
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
eggs
Expand Down

0 comments on commit bef1ef8

Please sign in to comment.