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

pull/1186/head
Erik Sundell 2022-10-08 15:23:49 +02:00
rodzic 55f4663329
commit d29af17b2e
2 zmienionych plików z 19 dodań i 16 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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