kopia lustrzana https://github.com/jupyterhub/repo2docker
ci: rely on setuptools/pip already installed in github environment
rodzic
55f4663329
commit
d29af17b2e
|
@ -34,13 +34,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: "3.9"
|
python-version: "3.9"
|
||||||
|
|
||||||
- name: "Install dependencies"
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade setuptools pip
|
pip install -r dev-requirements.txt
|
||||||
pip install --upgrade -r dev-requirements.txt
|
|
||||||
pip freeze
|
pip freeze
|
||||||
|
|
||||||
- name: "Build distribution archives"
|
- name: Build distribution archives
|
||||||
run: |
|
run: |
|
||||||
python setup.py sdist bdist_wheel
|
python setup.py sdist bdist_wheel
|
||||||
|
|
||||||
|
|
|
@ -62,10 +62,9 @@ jobs:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: "${{ github.run_id }}-${{ matrix.python_version }}"
|
key: "${{ github.run_id }}-${{ matrix.python_version }}"
|
||||||
|
|
||||||
- name: "Install dependencies"
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade setuptools pip
|
pip install -r dev-requirements.txt
|
||||||
pip install --upgrade -r dev-requirements.txt
|
|
||||||
pip freeze
|
pip freeze
|
||||||
|
|
||||||
- run: pre-commit run --all-files
|
- run: pre-commit run --all-files
|
||||||
|
@ -110,22 +109,27 @@ jobs:
|
||||||
path: ~/.cache/pip
|
path: ~/.cache/pip
|
||||||
key: "${{ github.run_id }}-${{ matrix.python_version }}"
|
key: "${{ github.run_id }}-${{ matrix.python_version }}"
|
||||||
|
|
||||||
- name: "Install"
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade setuptools pip wheel
|
pip install -r dev-requirements.txt
|
||||||
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
|
pip freeze
|
||||||
|
|
||||||
- name: "Run tests"
|
- name: Install repo2docker
|
||||||
|
run: |
|
||||||
|
python setup.py bdist_wheel
|
||||||
|
pip install dist/*.whl
|
||||||
|
|
||||||
|
# add for mercurial tests
|
||||||
|
pip install mercurial hg-evolve
|
||||||
|
|
||||||
|
pip freeze
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
cd tests
|
cd tests
|
||||||
pytest --verbose --color=yes --durations=10 --cov=repo2docker ./${{ matrix.repo_type }}
|
pytest --verbose --color=yes --durations=10 --cov=repo2docker ./${{ matrix.repo_type }}
|
||||||
|
|
||||||
- name: "Upload code coverage stats"
|
- name: Upload code coverage stats
|
||||||
run: |
|
run: |
|
||||||
pip install codecov
|
pip install codecov
|
||||||
pushd tests && codecov && cat
|
pushd tests && codecov && cat
|
||||||
|
|
Ładowanie…
Reference in New Issue