From 675919276b2673ee535a8728ecce1373354cfdb9 Mon Sep 17 00:00:00 2001 From: gnikit Date: Sat, 4 May 2024 17:55:14 +0100 Subject: [PATCH 1/2] ci: simplify coverage step --- .github/workflows/main.yml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a028fef8..8d6c8f5a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,26 +35,6 @@ jobs: python3 -m fortls.schema git diff --exit-code ./fortls/fortls.schema.json - coverage: - strategy: - matrix: - os: [ubuntu-latest, windows-latest] - python-version: ["3.8","3.10"] - fail-fast: false - runs-on: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - - name: Coverage report - run: | - pip install .[dev] - pytest --doctest-modules - shell: bash - - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: From d338b67593e9f7ee7cf0aff5261ba19484687f19 Mon Sep 17 00:00:00 2001 From: gnikit Date: Sat, 4 May 2024 17:56:15 +0100 Subject: [PATCH 2/2] refactor(ci): move unit test execution past linting --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8d6c8f5a..58c24f27 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,9 +24,6 @@ jobs: - name: Setup run: pip install .[dev] - - name: Unittests - run: pytest --doctest-modules - - name: Lint run: black --diff --check --verbose . @@ -35,6 +32,9 @@ jobs: python3 -m fortls.schema git diff --exit-code ./fortls/fortls.schema.json + - name: Unittests + run: pytest --doctest-modules + - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: