Skip to content

Commit f0ce144

Browse files
Update ci.yml (#579)
1 parent 3ad02ba commit f0ce144

File tree

2 files changed

+23
-34
lines changed

2 files changed

+23
-34
lines changed

.github/dependabot.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
version: 2
22
updates:
3-
- package-ecosystem: pip
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
open-pull-requests-limit: 10
3+
- package-ecosystem: pip
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "monthly"

.github/workflows/ci.yml

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,15 @@ jobs:
2222
timeout-minutes: 5
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
2626
- name: Setup Python
27-
uses: actions/setup-python@v2
27+
uses: actions/setup-python@v4
2828
with:
2929
python-version: 3.9
30-
- name: Cache PyPI
31-
uses: actions/cache@v2
32-
with:
33-
key: pip-lint-${{ hashFiles('requirements-dev.txt') }}
34-
path: ~/.cache/pip
35-
restore-keys: |
36-
pip-lint-
30+
cache: 'pip'
31+
cache-dependency-path: '**/requirements*.txt'
3732
- name: Install dependencies
38-
uses: py-actions/py-dependency-install@v2
33+
uses: py-actions/py-dependency-install@v4
3934
with:
4035
path: requirements-dev.txt
4136
- name: Install itself
@@ -65,24 +60,15 @@ jobs:
6560
timeout-minutes: 15
6661
steps:
6762
- name: Checkout
68-
uses: actions/checkout@v2
63+
uses: actions/checkout@v3
6964
- name: Setup Python ${{ matrix.pyver }}
70-
uses: actions/setup-python@v2
65+
uses: actions/setup-python@v4
7166
with:
7267
python-version: ${{ matrix.pyver }}
73-
- name: Get pip cache dir
74-
id: pip-cache
75-
run: |
76-
echo "::set-output name=dir::$(pip cache dir)" # - name: Cache
77-
- name: Cache PyPI
78-
uses: actions/cache@v2
79-
with:
80-
key: pip-ci-${{ runner.os }}-${{ matrix.pyver }}-${{ hashFiles('requirements-dev.txt') }}
81-
path: ${{ steps.pip-cache.outputs.dir }}
82-
restore-keys: |
83-
pip-ci-${{ runner.os }}-${{ matrix.pyver }}-
68+
cache: 'pip'
69+
cache-dependency-path: '**/requirements*.txt'
8470
- name: Install dependencies
85-
uses: py-actions/py-dependency-install@v2
71+
uses: py-actions/py-dependency-install@v4
8672
with:
8773
path: requirements.txt
8874
- name: Install JS dependencies
@@ -95,11 +81,10 @@ jobs:
9581
COLOR: 'yes'
9682
- run: python -m coverage xml
9783
- name: Upload coverage
98-
uses: codecov/codecov-action@v1
84+
uses: codecov/codecov-action@v3
9985
with:
10086
file: ./coverage.xml
10187
flags: unit
102-
fail_ci_if_error: false
10388

10489
check: # This job does nothing and is only used for the branch protection
10590
if: always()
@@ -122,8 +107,8 @@ jobs:
122107
runs-on: ubuntu-latest
123108
steps:
124109
- name: Checkout
125-
uses: actions/checkout@v2.4.0
126-
- name: Update pip, wheel, setuptools, build, twine, grablib
110+
uses: actions/checkout@v3
111+
- name: Install dependencies
127112
run: |
128113
python -m pip install -U pip wheel setuptools build twine grablib
129114
- name: Install JS dependencies
@@ -134,7 +119,7 @@ jobs:
134119
run: |
135120
python -m build
136121
- name: Make Release
137-
uses: aio-libs/create-release@v1.3.3
122+
uses: aio-libs/create-release@v1.6.6
138123
with:
139124
changes_file: CHANGES.txt
140125
name: aiohttp-devtools

0 commit comments

Comments
 (0)