From a1b76342be030cfff6f5e2c770e8ee831c63ec3c Mon Sep 17 00:00:00 2001 From: Dominic Date: Mon, 12 Jul 2021 16:49:49 +0100 Subject: [PATCH 1/5] Add files via upload --- dev-requirements.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 dev-requirements.txt diff --git a/dev-requirements.txt b/dev-requirements.txt new file mode 100644 index 000000000..abb677d00 --- /dev/null +++ b/dev-requirements.txt @@ -0,0 +1,10 @@ +ddt>=1.1.1 +coverage +flake8 +flake8-type-checking;python_version>="3.8" +tox +mypy +pytest +pytest-cov +gitdb>=4.0.1,<5 +typing-extensions>=3.7.4.3;python_version<"3.10" From fefda8c962e394bcc922056ce74ee33ae760a69a Mon Sep 17 00:00:00 2001 From: Dominic Date: Mon, 12 Jul 2021 16:50:29 +0100 Subject: [PATCH 2/5] Add files via upload --- .github/workflows/test_pytest.yml | 55 +++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/test_pytest.yml diff --git a/.github/workflows/test_pytest.yml b/.github/workflows/test_pytest.yml new file mode 100644 index 000000000..55c8e9844 --- /dev/null +++ b/.github/workflows/test_pytest.yml @@ -0,0 +1,55 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Python package + +on: + push: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: + [3.6, 3.7, 3.8, 3.9, "3.10.0-beta.3"] + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 9999 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies and prepare tests + run: | + set -x + python -m pip install --upgrade pip + python --version; git --version + git submodule update --init --recursive + git fetch --tags + + pip install -r dev-requirements.txt + TRAVIS=yes ./init-tests-after-clone.sh + + git config --global user.email "travis@ci.com" + git config --global user.name "Travis Runner" + # If we rewrite the user's config by accident, we will mess it up + # and cause subsequent tests to fail + cat test/fixtures/.gitconfig >> ~/.gitconfig + + - name: Test with pytest + run: | + set -x + pip install -r dev-requirements.txt + pytest --cov --cov-report=term-missing:skip-covered + # --cov-report=html:test/coverage + continue-on-error: true + + + + + From ec365801aecec611ea8984b4e9575d7dcab6ed04 Mon Sep 17 00:00:00 2001 From: Dominic Date: Mon, 12 Jul 2021 16:51:26 +0100 Subject: [PATCH 3/5] Update test-requirements.txt --- test-requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-requirements.txt b/test-requirements.txt index ab3f86109..a8a3a1527 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -3,6 +3,6 @@ coverage flake8 tox virtualenv -nose +nose;python_version<"3.10" gitdb>=4.0.1,<5 typing-extensions>=3.7.4.3;python_version<"3.10" From d77b3c0794e1b8e24b7917d7d480305b8063e36d Mon Sep 17 00:00:00 2001 From: Dominic Date: Mon, 12 Jul 2021 16:52:50 +0100 Subject: [PATCH 4/5] Update test_pytest.yml --- .github/workflows/test_pytest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_pytest.yml b/.github/workflows/test_pytest.yml index 55c8e9844..627e720f1 100644 --- a/.github/workflows/test_pytest.yml +++ b/.github/workflows/test_pytest.yml @@ -1,7 +1,7 @@ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions -name: Python package +name: Future on: push: From 185d847ec7647fd2642a82d9205fb3d07ea71715 Mon Sep 17 00:00:00 2001 From: Dominic Date: Mon, 12 Jul 2021 17:02:21 +0100 Subject: [PATCH 5/5] Update and rename test_pytest.yml to Future.yml --- .github/workflows/{test_pytest.yml => Future.yml} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename .github/workflows/{test_pytest.yml => Future.yml} (92%) diff --git a/.github/workflows/test_pytest.yml b/.github/workflows/Future.yml similarity index 92% rename from .github/workflows/test_pytest.yml rename to .github/workflows/Future.yml index 627e720f1..39146533b 100644 --- a/.github/workflows/test_pytest.yml +++ b/.github/workflows/Future.yml @@ -5,7 +5,9 @@ name: Future on: push: - branches: [main] + branches: [ main ] + pull_request: + branches: [ main ] jobs: build: