Pin pytest-cs to a stable tag, cache virtualenvs, don't install ipython in CI (#2075)
This commit is contained in:
parent
20a1bc7d44
commit
addf60b3ee
13
.github/workflows/docker-test.yml
vendored
13
.github/workflows/docker-test.yml
vendored
|
@ -42,17 +42,18 @@ jobs:
|
||||||
cd docker/test
|
cd docker/test
|
||||||
python -m pip install --upgrade pipenv wheel
|
python -m pip install --upgrade pipenv wheel
|
||||||
|
|
||||||
# - id: cache-pipenv
|
- name: "Cache virtualenvs"
|
||||||
# uses: actions/cache@v3
|
id: cache-pipenv
|
||||||
# with:
|
uses: actions/cache@v3
|
||||||
# path: ~/.local/share/virtualenvs
|
with:
|
||||||
# key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
|
path: ~/.local/share/virtualenvs
|
||||||
|
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
|
||||||
|
|
||||||
- name: "Install dependencies"
|
- name: "Install dependencies"
|
||||||
if: steps.cache-pipenv.outputs.cache-hit != 'true'
|
if: steps.cache-pipenv.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
cd docker/test
|
cd docker/test
|
||||||
pipenv install --deploy --dev
|
pipenv install --deploy
|
||||||
docker network create net-test
|
docker network create net-test
|
||||||
|
|
||||||
- name: "Run tests"
|
- name: "Run tests"
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
[packages]
|
[packages]
|
||||||
pytest-dotenv = "*"
|
pytest-dotenv = "*"
|
||||||
pytest-xdist = "*"
|
pytest-xdist = "*"
|
||||||
gnureadline = "*"
|
pytest-cs = {ref = "0.1.0", git = "https://github.com/crowdsecurity/pytest-cs.git"}
|
||||||
ipdb = "*"
|
|
||||||
pytest-cs = {ref = "main", git = "https://github.com/crowdsecurity/pytest-cs.git"}
|
|
||||||
|
|
||||||
[dev-packages]
|
[dev-packages]
|
||||||
|
gnureadline = "*"
|
||||||
|
ipdb = "*"
|
||||||
|
|
||||||
[requires]
|
[requires]
|
||||||
python_version = "3.10"
|
python_version = "3.10"
|
||||||
|
|
Loading…
Reference in a new issue