File tree Expand file tree Collapse file tree 1 file changed +8
-32
lines changed
Expand file tree Collapse file tree 1 file changed +8
-32
lines changed Original file line number Diff line number Diff line change 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') }}
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 : |
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 }}
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
You can’t perform that action at this time.
0 commit comments