Skip to content

Commit

Permalink
ci: add windows
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jan 14, 2024
1 parent 9fbedc6 commit ca523ad
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ on:
jobs:

core:
timeout-minutes: 5

strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python: ['3.9', '3.11']

env:
FC: gfortran-11
FC: gfortran-12

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -36,7 +37,31 @@ jobs:

- run: pytest

# - run: pip install codecov pytest-cov
# - run: pytest --cov --cov-report=xml
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
windows:
needs: core
runs-on: windows-latest
timeout-minutes: 10

steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
mingw-w64-x86_64-gcc-fortran
# Github actions Gfortran in default image is messed up.

- name: Put MSYS2_MinGW64 on PATH
run: echo "${{ runner.temp }}/msys64/mingw64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- uses: actions/setup-python@v4
with:
python-version: '3.11'

- uses: actions/checkout@v3

- run: python -m pip install .[tests,lint]

- run: flake8
- run: mypy

- run: pytest -v

0 comments on commit ca523ad

Please sign in to comment.