File tree 2 files changed +21
-20
lines changed
2 files changed +21
-20
lines changed Original file line number Diff line number Diff line change @@ -10,25 +10,31 @@ jobs:
10
10
11
11
runs-on : ubuntu-latest
12
12
strategy :
13
- fail-fast : false
13
+ fail-fast : true
14
14
matrix :
15
- python-version : ["3.x "]
15
+ python-version : ["3.11 "]
16
16
17
17
steps :
18
- - uses : actions/checkout@v3
18
+ - uses : actions/checkout@v4
19
19
- name : Set up Python ${{ matrix.python-version }}
20
- uses : actions/setup-python@v4
20
+ uses : actions/setup-python@v5
21
21
with :
22
22
python-version : ${{ matrix.python-version }}
23
23
cache : ' pip'
24
- cache-dependency-path : ' **/setup.py'
24
+ cache-dependency-path : ' **/setup.cfg'
25
+ # This is needed for compiling wxwidgets
25
26
- name : Install gtk3
26
27
run : |
27
28
sudo apt install libgtk-3-dev
28
29
- name : Install dependencies
29
30
run : |
30
- python -m pip install --upgrade pip setuptools wheel
31
- python -m pip install .[test,dist ]
31
+ python -m pip install --upgrade pip setuptools
32
+ python -m pip install .[dev ]
32
33
- name : Test with pytest
33
34
run : |
34
- pytest -v
35
+ pytest --cov=objdictgen --cov-report=xml -p no:logging --tb=no
36
+ - name : Upload coverage reports to Codecov
37
+
38
+ with :
39
+ token : ${{ secrets.CODECOV_TOKEN }}
40
+ slug : Laerdal/python-objdictgen
Original file line number Diff line number Diff line change @@ -20,28 +20,23 @@ jobs:
20
20
21
21
runs-on : ubuntu-latest
22
22
strategy :
23
- fail-fast : false
23
+ fail-fast : true
24
24
matrix :
25
25
python-version : ["3.x"]
26
26
27
27
steps :
28
- - uses : actions/checkout@v3
29
- - name : Set up Python
30
- uses : actions/setup-python@v4
28
+ - uses : actions/checkout@v4
29
+ - name : Set up Python ${{ matrix.python-version }}
30
+ uses : actions/setup-python@v5
31
31
with :
32
32
python-version : ${{ matrix.python-version }}
33
- - name : Install gtk3
34
- run : |
35
- sudo apt install libgtk-3-dev
33
+ cache : ' pip'
34
+ cache-dependency-path : ' **/setup.cfg'
36
35
- name : Install dependencies
37
36
run : |
38
- python -m pip install --upgrade pip setuptools wheel
37
+ python -m pip install --upgrade pip setuptools
39
38
python -m pip install build
40
- # - name: Build 2.7 package
41
- # if: ${{ matrix.python-version == '2.7' }}
42
- # run: python -m build --wheel
43
39
- name : Build package
44
- if : ${{ matrix.python-version != '2.7' }}
45
40
run : python -m build
46
41
# - name: Publish package to TestPyPI
47
42
# uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
You can’t perform that action at this time.
0 commit comments