Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
Drop Windows tests - they are redundant.
Browse files Browse the repository at this point in the history
  • Loading branch information
seandstewart committed Jan 28, 2021
1 parent 6ff0d7d commit b08b7b1
Showing 1 changed file with 0 additions and 69 deletions.
69 changes: 0 additions & 69 deletions .github/workflows/ci.yml
Expand Up @@ -120,75 +120,6 @@ jobs:
env_vars: OS
fail_ci_if_error: false

test-windows:
name: Test Windows
needs: lint
strategy:
matrix:
os: [windows-latest]
pyver: [3.6, 3.7, 3.8, 3.9, pypy3]
uvloop: [no-uvloop]
fail-fast: false
runs-on: ${{ matrix.os }}
continue-on-error: true
timeout-minutes: 15
env:
OS: ${{ matrix.os }}
INSTALL_DIR: ${{ github.workspace }}/redis
PYTEST_ADDOPTS: --${{ matrix.uvloop }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python ${{ matrix.pyver }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.pyver }}
- name: Cache Redis server
uses: actions/cache@v2
if: ${{ startsWith(runner.os, 'Windows') }}
with:
key: pip-ci-${{ runner.os }}-${{ hashFiles('**/requirements.txt') }}
path: ${{ github.workspace }}\redis
restore-keys: |
redis-ci-${{ runner.os }}
- name: Install Redis Server
run: |
choco install redis-64 --version 3.0.503
- name: Start Redis Server
run: |
start /B redis-server
redis-cli ping
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)" # - name: Cache
- name: Cache PyPI
uses: actions/cache@v2
with:
key: pip-ci-${{ runner.os }}-${{ matrix.pyver }}-${{ hashFiles('**/requirements.txt') }}
path: ${{ steps.pip-cache.outputs.dir }}
restore-keys: |
pip-ci-${{ runner.os }}-${{ matrix.pyver }}
- name: Install dependencies
uses: py-actions/py-dependency-install@v2
with:
path: tests/requirements.txt
- name: Install Self (windows)
if: ${{ startsWith(runner.os, 'Windows') }}
run: |
pip install -e . -c tests\requirements.txt
- name: Run unittests
if: ${{ startsWith(runner.os, 'Windows') }}
run: |
python -m pytest -sv --cov --cov-report=xml --junitxml=coverage.xml --redis-url=redis://localhost:6379
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
flags: unit
env_vars: OS
fail_ci_if_error: false

# deploy:
# name: Deploy
# runs-on: ubuntu-latest
Expand Down

0 comments on commit b08b7b1

Please sign in to comment.