diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 672323b1..e5d5ba16 100644 --- a/.github/workflows/release.yml +++ b/.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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ef006b48..ed11c1a8 100644 --- a/.github/workflows/test.yml +++ b/.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 --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 install -r dev-requirements.txt 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: | 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