Skip to content

Commit

Permalink
Bump actions to v3 and cache pip
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 15, 2022
1 parent ad7575d commit 98cc235
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ jobs:
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.9
cache: pip
cache-dependency-path: .github/workflows/build.yml

- name: Install cibuildwheel
run: pip install cibuildwheel
Expand All @@ -63,7 +65,7 @@ jobs:
run: cibuildwheel .

- name: Create wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheels
path: wheelhouse
Expand Down Expand Up @@ -102,10 +104,12 @@ jobs:
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.9
cache: pip
cache-dependency-path: .github/workflows/build.yml

- name: Install cibuildwheel
run: pip install cibuildwheel==1.12.0
Expand All @@ -114,7 +118,7 @@ jobs:
run: cibuildwheel .

- name: Create wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheels
path: wheelhouse
Expand All @@ -135,7 +139,7 @@ jobs:
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Run tests
id: test
Expand All @@ -157,8 +161,11 @@ jobs:
linters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
cache: pip
cache-dependency-path: .github/workflows/build.yml
- name: 'Run linters'
run: |
# py2
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ jobs:
runs-on: ubuntu-latest
steps:
# install python
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.8
cache: pip
cache-dependency-path: .github/workflows/issues.yml
# install deps
- name: Install deps
run: python -m pip install --upgrade pip PyGithub
Expand Down

0 comments on commit 98cc235

Please sign in to comment.