Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
colinxu2020 authored Jul 16, 2024
1 parent 2478542 commit ba70b01
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
pull_request:
branches: [ "master" ]
workflow_dispatch:
branches: [ "master" ]

jobs:
test:
Expand All @@ -21,9 +20,9 @@ jobs:
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -38,7 +37,7 @@ jobs:
run: |
python -m pdm run mypy slhdsa --disallow-untyped-defs
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./cov.xml
Expand All @@ -48,9 +47,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -61,8 +60,8 @@ jobs:
run: |
python -m pdm build --no-sdist
- name: Upload package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: slhdsa.whl
path: dist/slhdsa-0.1.0-py3-none-any.whl

name: Wheel
path: dist/*.whl

0 comments on commit ba70b01

Please sign in to comment.