Skip to content

Commit b001268

Browse files
Merge branch 'main' into ashwin/multignss_paths
2 parents 2a64cdd + ae2644a commit b001268

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
branches: [ main ]
1111
workflow_dispatch:
1212

13-
1413
jobs:
1514
build:
1615
name: Python ${{ matrix.python-version }}, OS ${{ matrix.os }}
@@ -19,14 +18,16 @@ 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-
uses: actions/setup-python@v2
29+
id: setup-python
30+
uses: actions/setup-python@v4
3031
with:
3132
python-version: ${{ matrix.python-version }}
3233
- name: Install Poetry
@@ -35,16 +36,20 @@ jobs:
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:
4346
path: .venv
4447
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
45-
- name: Install dependencies
48+
- name: Install dependencies and root package
4649
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
47-
run: poetry install --no-interaction
50+
run: |
51+
poetry install --no-interaction --no-root
52+
poetry install --no-interaction
4853
# Install pandoc for building docs
4954
- name: Install pandoc for Ubuntu
5055
if: matrix.os == 'ubuntu-latest'
@@ -55,11 +60,13 @@ jobs:
5560
- name: Install pandoc for MacOS
5661
if: matrix.os == 'macos-latest'
5762
run: brew install pandoc
63+
5864
- name: Test with pytest
5965
run: |
60-
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
6168
- name: Upload coverage report to code-cov
62-
uses: codecov/codecov-action@v2
69+
uses: codecov/codecov-action@v3
6370
with:
6471
fail_ci_if_error: true
6572
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
@@ -76,9 +83,7 @@ jobs:
7683

7784
- name: Get changed files since last remote commit
7885
id: changed-files
79-
uses: tj-actions/changed-files@v27
80-
with:
81-
since_last_remote_commit: "true"
86+
uses: tj-actions/changed-files@v34
8287

8388
- name: Check if index.rst changed when README.md file changes
8489
if: contains(steps.changed-files.outputs.modified_files, 'README.md') && !contains(steps.changed-files.outputs.modified_files, 'docs/source/index.rst')

0 commit comments

Comments
 (0)