Skip to content

Commit

Permalink
Fix CI (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogenstad authored Jun 8, 2024
1 parent 1165f24 commit 3bafdd9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 22 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,14 @@ jobs:
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
platform: [ubuntu-latest, macOS-latest, windows-latest]
platform: [ubuntu-latest, macos-13, windows-2019]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- name: Install Poetry
uses: snok/install-poetry@v1
Expand All @@ -78,23 +77,23 @@ jobs:
with:
path: .venv
key: venv-${{ matrix.python-version }}-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
if: ${{ matrix.platform != 'windows-latest' }} # windows hangs if using a cached venv
if: ${{ matrix.platform != 'windows-2019' }} # windows hangs if using a cached venv

- name: Install Dependencies
run: poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'

- name: Run pytest
run: make pytest
if: ${{ matrix.platform != 'windows-latest' }}
if: ${{ matrix.platform != 'windows-2019' }}

- name: Run pytest
run: poetry run pytest --cov=nornir --cov-report=term-missing
if: ${{ matrix.platform == 'windows-latest' }}
if: ${{ matrix.platform == 'windows-2019' }}

- name: Run nbval
run: make nbval
if: ${{ matrix.platform != 'windows-latest' }}
if: ${{ matrix.platform != 'windows-2019' }}

# release:
# name: Releasing to pypi
Expand Down
21 changes: 5 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3bafdd9

Please sign in to comment.