Pin pytest-cs to a stable tag, cache virtualenvs, don't install ipython in CI (#2075)

This commit is contained in:
mmetc 2023-02-24 11:01:45 +01:00 committed by GitHub
parent 20a1bc7d44
commit addf60b3ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 9 deletions

View file

@ -42,17 +42,18 @@ jobs:
cd docker/test
python -m pip install --upgrade pipenv wheel
# - id: cache-pipenv
# uses: actions/cache@v3
# with:
# path: ~/.local/share/virtualenvs
# key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
- name: "Cache virtualenvs"
id: cache-pipenv
uses: actions/cache@v3
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
- name: "Install dependencies"
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: |
cd docker/test
pipenv install --deploy --dev
pipenv install --deploy
docker network create net-test
- name: "Run tests"

View file

@ -1,11 +1,11 @@
[packages]
pytest-dotenv = "*"
pytest-xdist = "*"
gnureadline = "*"
ipdb = "*"
pytest-cs = {ref = "main", git = "https://github.com/crowdsecurity/pytest-cs.git"}
pytest-cs = {ref = "0.1.0", git = "https://github.com/crowdsecurity/pytest-cs.git"}
[dev-packages]
gnureadline = "*"
ipdb = "*"
[requires]
python_version = "3.10"