Skip to content

Commit 679538b

Browse files
authored
Merge pull request #109 from scop/ci/cleanups
ci: cleanups
2 parents a53036f + 1c31626 commit 679538b

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

.github/renovate.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@
1818
"(^|/)(requirements[\\w-]*\\.txt|\\.pre-commit-config\\.yaml)$"
1919
]
2020
},
21-
"regexManagers": [
22-
{
23-
"fileMatch": ["^\\.github/workflows/check\\.yml$"],
24-
"matchStrings": ["\\s(?<depName>[\\w-]+)==(?<currentValue>\\S+)"],
25-
"datasourceTemplate": "pypi"
26-
}
27-
],
2821
"packageRules": [
2922
{
3023
"matchFiles": ["requirements-test.txt"],

.github/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-r ../requirements-dev.txt
2+
3+
gitlint ==0.18.0
4+
pre-commit >=1.18.2

.github/workflows/check.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ jobs:
1414
with:
1515
ref: ${{ github.event.pull_request.head.sha }}
1616
fetch-depth: 0
17-
- uses: actions/setup-python@v4
1817
- uses: actions/cache@v3
1918
with:
2019
path: |
2120
~/.cache/pip
2221
key: >-
2322
${{ runner.os }} pip
24-
${{ hashFiles('requirements-dev.txt', 'requirements-test.txt') }}
25-
- run: |
23+
${{ hashFiles('requirements-dev.txt', 'requirements-test.txt',
24+
'.github/requirements.txt') }}
25+
- name: Install dependencies
26+
run: |
2627
python3 -m venv venv
2728
source venv/bin/activate
28-
python3 -m pip install -Ur \
29-
requirements-dev.txt gitlint==0.18.0 "pre-commit>=1.18.2"
29+
python3 -m pip install -Ur .github/requirements.txt
3030
- name: Run gitlint
3131
run: |
3232
set -euo pipefail
@@ -73,7 +73,7 @@ jobs:
7373
${{ hashFiles('requirements-test.txt') }}
7474
- run: |
7575
set -euxo pipefail
76-
python3 -m pip install -U nox codecov ${{ matrix.extra-deps }}
76+
python3 -m pip install -U nox codecov
7777
v="${{ matrix.python-version }}"
7878
v=${v##* } # "3.12.0-alpha - 3.12" -> "3.12"
7979
v=${v//-} # "pypy-3.9" -> "pypy3.9"

0 commit comments

Comments
 (0)