From 15272edd828b3375dfc3f117f95225ff8d00070f Mon Sep 17 00:00:00 2001 From: Daniel Rasmussen Date: Thu, 3 Feb 2022 12:07:23 -0400 Subject: [PATCH] Use Github Actions instead of Appveyor --- .appveyor.yml | 35 ------------------------------- .github/workflows/windows-ci.yml | 36 ++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 35 deletions(-) delete mode 100644 .appveyor.yml create mode 100644 .github/workflows/windows-ci.yml diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 6fa458511..000000000 --- a/.appveyor.yml +++ /dev/null @@ -1,35 +0,0 @@ -skip_branch_with_pr: true - -image: Visual Studio 2019 - -environment: - MODE: test - PYTHON_VERSION: C:\Python37-x64 - NUMPY_VERSION: numpy - TF_VERSION: tensorflow - NENGO_VERSION: nengo[tests] - TEST_ARGS: "" - - matrix: - - MODE: test # default build - - NENGO_VERSION: git+https://github.com/nengo/nengo.git#egg=nengo[tests] - TF_VERSION: tensorflow --pre - PYTHON_VERSION: C:\Python38-x64 - - NENGO_VERSION: nengo[tests]==3.0.0 - TF_VERSION: tensorflow==2.2.0 - NUMPY_VERSION: numpy==1.16.0 - PYTHON_VERSION: C:\Python36-x64 - -init: - - set PATH=%PYTHON_VERSION%;%PYTHON_VERSION%\Scripts;%PATH% - -install: - - python -m pip install pip setuptools --upgrade - - pip install %NUMPY_VERSION% %TF_VERSION% %NENGO_VERSION% - - pip install -e .[tests] - - pip freeze - -build: false # Not a C# project - -test_script: - - pytest -n 2 --durations 20 nengo_dl %TEST_ARGS% && pytest -n 2 --durations 20 --pyargs nengo %TEST_ARGS% diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml new file mode 100644 index 000000000..08169711b --- /dev/null +++ b/.github/workflows/windows-ci.yml @@ -0,0 +1,36 @@ +name: Windows CI +on: [push] + +jobs: + test: + strategy: + matrix: + include: + - python_version: 3.7 + numpy_version: numpy + tf_version: tensorflow + nengo_version: nengo[tests] + - python_version: 3.8 + numpy_version: numpy + tf_version: tensorflow --pre + nengo_version: git+https://github.com/nengo/nengo.git#egg=nengo[tests] + - python_version: 3.6 + numpy_version: numpy==1.16.0 + tf_version: tensorflow==2.2.0 + nengo_version: nengo[tests]==3.0.0 + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python_version }} + - name: Install dependencies + run: | + python -m pip install pip setuptools --upgrade + pip install ${{ matrix.numpy_version }} ${{ matrix.tf_version }} ${{ matrix.nengo_version }} + pip install -e .[tests] + pip freeze + - name: Run tests + run: | + pytest -n 2 -v --durations 20 nengo_dl + pytest -n 2 -v --durations 20 --pyargs nengo