Skip to content

Commit 46176bd

Browse files
committed
CICD: make 'test' stage require 'lint' passes, change coveralls action to v2
1 parent 5fbd3a0 commit 46176bd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/cicd.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
src: ./pydantic2ts
1414
test:
1515
name: Run unit tests
16+
needs: lint
1617
runs-on: ${{ matrix.os }}
1718
strategy:
1819
matrix:
@@ -55,17 +56,18 @@ jobs:
5556
uv run coverage lcov
5657
- name: (ubuntu 3.9) Upload to Coveralls
5758
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
58-
uses: coverallsapp/github-action@master
59+
uses: coverallsapp/github-action@2
5960
with:
6061
github-token: ${{ secrets.GITHUB_TOKEN }}
6162
path-to-lcov: coverage.lcov
6263
deploy:
6364
name: Deploy to PyPi
65+
needs: test
6466
runs-on: ubuntu-latest
6567
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
66-
needs: test
6768
steps:
68-
- uses: actions/checkout@v4
69+
- name: Check out repo
70+
uses: actions/checkout@v4
6971
- name: Set up Python 3.9
7072
uses: actions/setup-python@v5
7173
with:

0 commit comments

Comments
 (0)