From 22b4ba4cfaa37b417b12a3a92209c6f85bf741d7 Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Thu, 22 Feb 2024 17:18:36 +0800 Subject: [PATCH] fix(ci): update workflow Signed-off-by: Frost Ming --- .github/workflows/ci.yml | 9 ++------- .github/workflows/release.yml | 3 +-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 575cf9f..3b49014 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,21 +19,16 @@ jobs: with: submodules: true - name: Set up PDM - uses: pdm-project/setup-pdm@v3 + uses: pdm-project/setup-pdm@v4 with: python-version: ${{ matrix.python-version }} cache: true - name: Install dependencies run: pdm install -G toc -G codehilite - - name: Run Tests 3.11 - if: ${{ matrix.python-version == '3.11' }} - run: pdm run -v pytest tests - - name: Run Tests < 3.11 - if: ${{ matrix.python-version != '3.11' }} + - name: Run Tests run: pdm run -v pytest --cov=marko/ --cov-report=xml tests - name: Upload coverage to Codecov - if: ${{ matrix.python-version != '3.11' }} uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fcf114f..ee39596 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,8 +18,7 @@ jobs: python-version: '3.11' - name: Build artifacts run: | - pip install build - python -m build + pipx run build - name: Test Build run: | python3 -m venv fresh_env