From 929b2a94509367c74bde15037d708d044c78f506 Mon Sep 17 00:00:00 2001 From: KingDarBoja Date: Tue, 29 Sep 2020 18:33:50 -0500 Subject: [PATCH 1/3] chore: submit coverage to codecov --- .github/workflows/lint.yml | 2 +- .github/workflows/tests.yml | 22 ++++++++++++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b36ef4c..252a382 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,6 +1,6 @@ name: Lint -on: [pull_request] +on: [push, pull_request] jobs: build: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 03f92d6..e86180c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,6 @@ name: Tests -on: [pull_request] +on: [push, pull_request] jobs: build: @@ -23,4 +23,22 @@ jobs: - name: Test with tox run: tox env: - TOXENV: ${{ matrix.toxenv }} \ No newline at end of file + TOXENV: ${{ matrix.toxenv }} + + coverage: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Install test dependencies + run: | + python -m pip install --upgrade pip + pip install .[test] + - name: Test with coverage + run: pytest --cov=gql --cov-report=xml tests + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 \ No newline at end of file From bbdf2fe987052bb9ac8508459351b90a20a7fbf6 Mon Sep 17 00:00:00 2001 From: KingDarBoja Date: Tue, 29 Sep 2020 18:39:34 -0500 Subject: [PATCH 2/3] chore: add correct package name on gh action --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e86180c..da89ab4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -39,6 +39,6 @@ jobs: python -m pip install --upgrade pip pip install .[test] - name: Test with coverage - run: pytest --cov=gql --cov-report=xml tests + run: pytest --cov=graphql_server --cov-report=xml tests - name: Upload coverage to Codecov uses: codecov/codecov-action@v1 \ No newline at end of file From 9d98c7305507f03e4a5a412cbfd5071bb2eaa153 Mon Sep 17 00:00:00 2001 From: KingDarBoja Date: Sat, 17 Oct 2020 13:12:06 -0500 Subject: [PATCH 3/3] chore: add windows to os matrix for tests action workflow --- .github/workflows/tests.yml | 62 +++++++++++++++++++++---------------- 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index da89ab4..3373733 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,41 +4,49 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: max-parallel: 4 matrix: python-version: ["3.6", "3.7", "3.8", "3.9-dev"] + os: [ubuntu-latest, windows-latest] + exclude: + - os: windows-latest + python-version: "3.6" + - os: windows-latest + python-version: "3.7" + - os: windows-latest + python-version: "3.9-dev" steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install tox tox-gh-actions - - name: Test with tox - run: tox - env: - TOXENV: ${{ matrix.toxenv }} + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install tox tox-gh-actions + - name: Test with tox + run: tox + env: + TOXENV: ${{ matrix.toxenv }} coverage: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: Install test dependencies - run: | - python -m pip install --upgrade pip - pip install .[test] - - name: Test with coverage - run: pytest --cov=graphql_server --cov-report=xml tests - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 \ No newline at end of file + - uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Install test dependencies + run: | + python -m pip install --upgrade pip + pip install .[test] + - name: Test with coverage + run: pytest --cov=graphql_server --cov-report=xml tests + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1