@@ -11,15 +11,18 @@ jobs:
11
11
strategy :
12
12
fail-fast : false
13
13
matrix :
14
- python-version : [ "3.11"]
14
+ python-version : ["3.11"]
15
15
poetry-version : ["1.7"]
16
16
# os: [ubuntu-latest, macos-latest, windows-latest]
17
17
os : [ubuntu-latest]
18
18
runs-on : ${{ matrix.os }}
19
19
steps :
20
- - uses : actions/checkout@v3
20
+ - uses : actions/checkout@v4
21
21
- name : Install Python
22
- uses : actions/setup-python@v4
22
+ uses : actions/setup-python@v5
23
+ with :
24
+ python-version : ${{ matrix.python-version }}
25
+
23
26
# see details (matrix, python-version, python-version-file, etc.)
24
27
# https://github.com/actions/setup-python
25
28
- name : Install poetry
@@ -37,13 +40,14 @@ jobs:
37
40
run : poetry install
38
41
39
42
- name : Run tests and generate coverage report
40
- run : poetry run pytest --doctest-modules -v --cov=mppt --cov-fail-under 0 --cov-report=term --cov-report=xml --cov-report=html
43
+ run : poetry run pytest --doctest-modules -v --cov=toyllm --cov-fail-under 0 --cov-report=term --cov-report=xml --cov-report=html
41
44
42
45
- name : Upload coverage to Codecov
43
- uses : codecov/codecov-action@v3
44
- if : success() && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8 '
46
+ uses : codecov/codecov-action@v4.0.1
47
+ if : success() && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11 '
45
48
with :
46
49
token : ${{ secrets.CODECOV_TOKEN }}
50
+ slug : toy-ai/toyllm
47
51
files : ./coverage.xml
48
52
fail_ci_if_error : true
49
53
verbose : true
0 commit comments