File tree Expand file tree Collapse file tree 5 files changed +16
-16
lines changed Expand file tree Collapse file tree 5 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,7 @@ name: Checks
3
3
4
4
on :
5
5
push :
6
- branches :
7
- - master
8
6
pull_request :
9
- branches :
10
- - master
11
7
12
8
env :
13
9
CACHE_VERSION : 1
43
39
id : generate-python-key
44
40
run : >-
45
41
echo "key=${{ env.KEY_PREFIX }}-${{ env.CACHE_VERSION }}-${{
46
- hashFiles('pyproject.toml', 'requirements_test.txt',
47
- 'requirements_test_min.txt', 'requirements_test_pre_commit.txt') }}" >>
48
- $GITHUB_OUTPUT
42
+ hashFiles('pyproject.toml', 'requirements/**.txt') }}" >> $GITHUB_OUTPUT
49
43
- name : Restore Python virtual environment
50
44
id : cache-venv
51
45
66
60
path : ${{ env.PRE_COMMIT_CACHE }}
67
61
key : >-
68
62
${{ runner.os }}-${{ steps.generate-pre-commit-key.outputs.key }}
69
- - name : install dependencies
63
+ - name : Install Dependencies
70
64
if : steps.cache-venv.outputs.cache-hit != 'true'
71
65
run : make install
72
66
Original file line number Diff line number Diff line change 1
1
---
2
- name : Testing
2
+ name : Tests
3
3
4
4
on :
5
5
push :
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ requirements/dev.txt: .venv requirements/dev.in pyproject.toml
16
16
--quiet --generate-hashes --max-rounds=20 --strip-extras \
17
17
--resolver=backtracking \
18
18
--output-file requirements/dev.txt \
19
- requirements/dev.in pyproject.toml
19
+ requirements/dev.in
20
20
21
21
# upgrades the dependencies to their latest/matching version
22
22
.PHONY : upgrade
@@ -26,14 +26,12 @@ upgrade: .venv
26
26
--upgrade \
27
27
--resolver=backtracking \
28
28
--output-file requirements/dev.txt \
29
- requirements/dev.in pyproject.toml
29
+ requirements/dev.in
30
30
31
31
32
32
# creates the venv if not present then install the dependencies, the package and pre-commit
33
33
.PHONY : install
34
34
install : .venv
35
35
pip-sync requirements/dev.txt
36
- # install pylint_pytest (deps are already handled by the line before)
37
- pip install --no-deps -e .
38
36
# install pre-commit hooks
39
37
pre-commit install
Original file line number Diff line number Diff line change
1
+ # Install pylint-pytest and its dependencies.
2
+ # tl;dr: Install pylint
3
+ -e file:.#egg=pylint-pytest
4
+
1
5
# to handle dependencies
2
6
pip-tools
3
7
wheel
Original file line number Diff line number Diff line change 2
2
# This file is autogenerated by pip-compile with Python 3.11
3
3
# by the following command:
4
4
#
5
- # pip-compile --generate-hashes --max-rounds=20 --output-file=requirements/dev.txt --strip-extras pyproject.toml requirements/dev.in
5
+ # pip-compile --generate-hashes --max-rounds=20 --output-file=requirements/dev.txt --strip-extras requirements/dev.in
6
6
#
7
+ # WARNING: pip install will require the following package to be hashed.
8
+ # Consider using a hashable URL like https://github.com/jazzband/pip-tools/archive/SOMECOMMIT.zip
9
+ -e file:.#egg=pylint-pytest
10
+ # via -r requirements/dev.in
7
11
astroid==3.0.1 \
8
12
--hash=sha256:7d5895c9825e18079c5aeac0572bc2e4c83205c95d416e0b4fee8bc361d2d9ca \
9
13
--hash=sha256:86b0bb7d7da0be1a7c4aedb7974e391b32d4ed89e33de6ed6902b4b15c97577e
@@ -135,7 +139,7 @@ pre-commit==3.5.0 \
135
139
pylint==3.0.2 \
136
140
--hash=sha256:0d4c286ef6d2f66c8bfb527a7f8a629009e42c99707dec821a03e1b51a4c1496 \
137
141
--hash=sha256:60ed5f3a9ff8b61839ff0348b3624ceeb9e6c2a92c514d81c9cc273da3b6bcda
138
- # via pylint-pytest (pyproject.toml)
142
+ # via pylint-pytest
139
143
pyproject-hooks==1.0.0 \
140
144
--hash=sha256:283c11acd6b928d2f6a7c73fa0d01cb2bdc5f07c57a2eeb6e83d5e56b97976f8 \
141
145
--hash=sha256:f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5
@@ -145,7 +149,7 @@ pytest==7.4.3 \
145
149
--hash=sha256:d989d136982de4e3b29dabcc838ad581c64e8ed52c11fbe86ddebd9da0818cd5
146
150
# via
147
151
# -r requirements/dev.in
148
- # pylint-pytest (pyproject.toml)
152
+ # pylint-pytest
149
153
# pytest-cov
150
154
pytest-cov==4.1.0 \
151
155
--hash=sha256:3904b13dfbfec47f003b8e77fd5b589cd11904a21ddf1ab38a64f204d6a10ef6 \
You can’t perform that action at this time.
0 commit comments