Skip to content

Commit 797e955

Browse files
committed
chore: upd pr workflow
1 parent 2230088 commit 797e955

File tree

1 file changed

+8
-32
lines changed

1 file changed

+8
-32
lines changed

.github/workflows/pr.yml

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
python-version: ${{ matrix.python-version }}
2323

2424
- name: Cache pip dependencies
25-
uses: actions/cache@v3
25+
uses: actions/cache@v4
2626
with:
2727
path: ~/.cache/pip
2828
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
@@ -33,6 +33,7 @@ jobs:
3333
run: |
3434
python -m pip install --upgrade pip
3535
pip install -e ".[dev]"
36+
pip install build
3637
3738
- name: Lint with flake8
3839
run: |
@@ -49,6 +50,10 @@ jobs:
4950
run: |
5051
mypy src/lingodotdev
5152
53+
- name: Validate package builds
54+
run: |
55+
python -m build
56+
5257
- name: Test with pytest
5358
env:
5459
LINGODOTDEV_API_KEY: ${{ secrets.LINGODOTDEV_API_KEY }}
@@ -57,38 +62,9 @@ jobs:
5762
5863
- name: Upload coverage to Codecov
5964
if: matrix.python-version == '3.11'
60-
uses: codecov/codecov-action@v3
65+
uses: codecov/codecov-action@v4
6166
with:
6267
file: ./coverage.xml
6368
flags: unittests
6469
name: codecov-umbrella
65-
fail_ci_if_error: false
66-
67-
build:
68-
name: Build package
69-
runs-on: ubuntu-latest
70-
needs: test
71-
72-
steps:
73-
- name: Checkout code
74-
uses: actions/checkout@v4
75-
76-
- name: Set up Python
77-
uses: actions/setup-python@v4
78-
with:
79-
python-version: '3.11'
80-
81-
- name: Install build dependencies
82-
run: |
83-
python -m pip install --upgrade pip
84-
pip install build
85-
86-
- name: Build package
87-
run: |
88-
python -m build
89-
90-
- name: Upload build artifacts
91-
uses: actions/upload-artifact@v3
92-
with:
93-
name: dist
94-
path: dist/
70+
fail_ci_if_error: false

0 commit comments

Comments
 (0)