1010 branches : [ main ]
1111 workflow_dispatch :
1212
13-
1413jobs :
1514 build :
1615 name : Python ${{ matrix.python-version }}, OS ${{ matrix.os }}
@@ -19,13 +18,15 @@ jobs:
1918 matrix :
2019 python-version : ["3.7.1", "3.8", "3.10"]
2120 os : [ubuntu-latest, macos-latest, windows-latest]
21+ fail-fast : false
2222 defaults :
2323 run :
2424 shell : bash
2525
2626 steps :
2727 - uses : actions/checkout@v3
2828 - name : Set up Python ${{ matrix.python-version }}
29+ id : setup-python
2930 uses : actions/setup-python@v4
3031 with :
3132 python-version : ${{ matrix.python-version }}
3536 virtualenvs-create : true
3637 virtualenvs-in-project : true
3738 installer-parallel : true # default option selected currently
39+ version : 1.1.14
3840 # Load cached environment, if it exists
3941 - name : Load cached poetry environment
42+ if : false == (matrix.os == 'windows-latest' && matrix.python-version=='3.7.1')
4043 id : cached-poetry-dependencies
4144 uses : actions/cache@v3
4245 with :
@@ -57,11 +60,13 @@ jobs:
5760 - name : Install pandoc for MacOS
5861 if : matrix.os == 'macos-latest'
5962 run : brew install pandoc
63+
6064 - name : Test with pytest
6165 run : |
62- poetry run pytest --cov=gnss_lib_py/algorithms --cov=gnss_lib_py/parsers --cov=gnss_lib_py/utils --cov-report=xml
66+ source $VENV
67+ pytest --cov=gnss_lib_py/algorithms --cov=gnss_lib_py/parsers --cov=gnss_lib_py/utils --cov-report=xml
6368 - name : Upload coverage report to code-cov
64- uses : codecov/codecov-action@v2
69+ uses : codecov/codecov-action@v3
6570 with :
6671 fail_ci_if_error : true
6772 token : ${{ secrets.CODECOV_TOKEN }} # not required for public repos
7883
7984 - name : Get changed files since last remote commit
8085 id : changed-files
81- uses : tj-actions/changed-files@v27
82- with :
83- since_last_remote_commit : " true"
86+ uses : tj-actions/changed-files@v34
8487
8588 - name : Check if index.rst changed when README.md file changes
8689 if : contains(steps.changed-files.outputs.modified_files, 'README.md') && !contains(steps.changed-files.outputs.modified_files, 'docs/source/index.rst')
0 commit comments