Skip to content

Commit

Permalink
fix(ci): update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming committed Feb 22, 2024
1 parent 0e3272d commit 22b4ba4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 22b4ba4

Please sign in to comment.