diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d274f21..a9f3fa4 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -12,10 +12,11 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ['3.7', '3.8', '3.9', '3.10'] + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: ['3.8', '3.9', '3.10'] steps: - uses: actions/checkout@v2 @@ -27,7 +28,7 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install flake8 pytest coverage - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + pip install -r requirements.txt - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names diff --git a/README.rst b/README.rst index 118e727..d352f96 100644 --- a/README.rst +++ b/README.rst @@ -7,7 +7,7 @@ Introduction :globalemu: Robust Global 21-cm Signal Emulation :Author: Harry Thomas Jones Bevins -:Version: 1.7.3 +:Version: 1.8.0 :Homepage: https://github.com/htjb/globalemu :Documentation: https://globalemu.readthedocs.io/ diff --git a/requirements.txt b/requirements.txt index 1c9f3af..0ab477e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ numpy -tensorflow +tensorflow-macos; sys_platform == 'darwin' +tensorflow; sys_platform != 'darwin' pandas matplotlib Pillow diff --git a/setup.py b/setup.py index 1398994..23e4b04 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages def readme(short=False): - with open('README.rst') as f: + with open('README.rst', encoding='utf-8') as f: if short: return f.readlines()[1].strip() else: