File tree Expand file tree Collapse file tree 6 files changed +770
-595
lines changed Expand file tree Collapse file tree 6 files changed +770
-595
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 : |
@@ -49,44 +50,21 @@ 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
58+ env :
59+ LINGODOTDEV_API_KEY : ${{ secrets.LINGODOTDEV_API_KEY }}
5360 run : |
5461 pytest --cov=src/lingodotdev --cov-report=xml --cov-report=term-missing
5562
5663 - name : Upload coverage to Codecov
5764 if : matrix.python-version == '3.11'
58- uses : codecov/codecov-action@v3
65+ uses : codecov/codecov-action@v4
5966 with :
6067 file : ./coverage.xml
6168 flags : unittests
6269 name : codecov-umbrella
63- fail_ci_if_error : false
64-
65- build :
66- name : Build package
67- runs-on : ubuntu-latest
68- needs : test
69-
70- steps :
71- - name : Checkout code
72- uses : actions/checkout@v4
73-
74- - name : Set up Python
75- uses : actions/setup-python@v4
76- with :
77- python-version : ' 3.11'
78-
79- - name : Install build dependencies
80- run : |
81- python -m pip install --upgrade pip
82- pip install build
83-
84- - name : Build package
85- run : |
86- python -m build
87-
88- - name : Upload build artifacts
89- uses : actions/upload-artifact@v3
90- with :
91- name : dist
92- path : dist/
70+ fail_ci_if_error : false
You can’t perform that action at this time.
0 commit comments