conditional syntax
@@ -26,20 +26,20 @@ jobs:
# Rebound doesn't work on windows
- name: Install optional dependencies
- if: ${{ matrix.os == "ubuntu-latest" }}
+ if: ${{ matrix.os }} == "ubuntu-latest"
run: python -m pip install -U rebound
# Run without coverage in general
- name: Test with pytest without coverage
- if: ${{ matrix.os != "ubuntu-latest" || matrix.python-version != "3.7" }}
+ if: ${{ matrix.os }} != "ubuntu-latest" || ${{ matrix.python-version }} != "3.7"
run: python -m pytest -vs tests
# Run with coverage only on one system
- name: Test with pytest and coverage
- if: ${{ matrix.os == "ubuntu-latest" && matrix.python-version == "3.7" }}
+ if: ${{ matrix.os }} == "ubuntu-latest" && ${{ matrix.python-version }} == "3.7"
run: python -m pytest -vs --cov=exoplanet tests
- name: Upload coverage
- if: ${{ matrix.os == "ubuntu-latest" && success() }}
+ if: ${{ matrix.os }} == "ubuntu-latest" && success()
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: coveralls
