From 1c5cf307d4053982053dd6a60b86b277b6acc295 Mon Sep 17 00:00:00 2001 From: Rijnder Wever Date: Thu, 12 Dec 2024 13:26:05 +0100 Subject: [PATCH] ci: prettify CI workflow files --- .github/workflows/codecov.yml | 5 +++-- .github/workflows/pytest.yml | 10 +++++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index dd0a257..88c2f29 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -20,8 +20,9 @@ jobs: with: python-version: '3.11' - - name: Install dependencies - run: pip install pytest pytest-cov . + - name: Install mdto.py and dependencies + run: | + pip install pytest pytest-cov . - name: Run tests run: pytest --cov --cov-report=xml diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index cae9c7a..56ec463 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -14,16 +14,20 @@ jobs: runs-on: ubuntu-latest # this is the only distro available 🙃 steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v5 + + - name: Set up Python + uses: actions/setup-python@v5 with: python-version: '3.11' + - name: Install mdto.py and dependencies run: | - python -m pip install --upgrade pip pip install pytest # pytest ≠ project dep, so add it here pip install . + - name: Run tests run: pytest