ci: rely on setuptools/pip already installed in github environment
MODIFY
.github/workflows/release.yml
.github/workflows/release.yml
@@ -34,13 +34,12 @@ jobs:
with:
python-version: "3.9"
- - name: "Install dependencies"
+ - name: Install dependencies
run: |
- pip install --upgrade setuptools pip
- pip install --upgrade -r dev-requirements.txt
+ pip install -r dev-requirements.txt
pip freeze
- - name: "Build distribution archives"
+ - name: Build distribution archives
run: |
python setup.py sdist bdist_wheel

MODIFY
.github/workflows/test.yml
.github/workflows/test.yml
@@ -62,10 +62,9 @@ jobs:
path: ~/.cache/pip
key: "${{ github.run_id }}-${{ matrix.python_version }}"
- - name: "Install dependencies"
+ - name: Install dependencies
run: |
- pip install --upgrade setuptools pip
- pip install --upgrade -r dev-requirements.txt
+ pip install -r dev-requirements.txt
pip freeze
- run: pre-commit run --all-files
@@ -110,22 +109,27 @@ jobs:
path: ~/.cache/pip
key: "${{ github.run_id }}-${{ matrix.python_version }}"
- - name: "Install"
+ - name: Install dependencies
+ run: |
+ pip install -r dev-requirements.txt
+ pip freeze
+
+ - name: Install repo2docker
run: |
- pip install --upgrade setuptools pip wheel
- pip install --upgrade -r dev-requirements.txt
python setup.py bdist_wheel
pip install dist/*.whl
+
# add for mercurial tests
pip install mercurial hg-evolve
+
pip freeze
- - name: "Run tests"
+ - name: Run tests
run: |
cd tests
pytest --verbose --color=yes --durations=10 --cov=repo2docker ./${{ matrix.repo_type }}
- - name: "Upload code coverage stats"
+ - name: Upload code coverage stats
run: |
pip install codecov
pushd tests && codecov && cat

ci: rely on setuptools/pip already installed in github environment