Skip to content

Commit

Permalink
Remove miniconda and add Windows CI support
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Jul 24, 2020
1 parent 58b36a7 commit 8b4c837
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 71 deletions.
44 changes: 28 additions & 16 deletions .github/workflows/ci.yml
Expand Up @@ -10,8 +10,15 @@ jobs:
strategy:
fail-fast: false
matrix:
python: [3.5, 3.6, 3.7, 3.8]
os: [ubuntu-latest, macos-latest]
python:
- 3.5
- 3.6
- 3.7
- 3.8
os:
- ubuntu-latest
- macos-latest
- windows-latest

steps:
- name: Clone repository
Expand All @@ -23,23 +30,28 @@ jobs:
python-version: ${{ matrix.python }}
architecture: "x64"

- run: python --version
- run: pip --version

- name: Get pip cache directory
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/miniconda3
key: ${{ runner.os }}-python-v${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('ci/*.sh') }}
restore-keys: ${{ runner.os }}-python-v${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('ci/*.sh') }}
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-python-v${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-python-v${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
${{ runner.os }}-python-v${{ matrix.python }}-
- name: Install conda
env:
PYTHON_VERSION: ${{ matrix.python }}
run: |
export PATH="$HOME/miniconda3/bin:$PATH"
ci/install_conda.sh
ci/setup_conda_env.sh
- name: Install Python dependencies
run: pip install -r requirements.txt

- name: Run lint
run: flake8 --max-line-length 120

- name: Run tests
run: |
export PATH="$HOME/miniconda3/bin:$PATH"
ci/lint.sh
ci/test.sh
run: python testUpdateHostsFile.py
28 changes: 0 additions & 28 deletions ci/install_conda.sh

This file was deleted.

8 changes: 0 additions & 8 deletions ci/lint.sh

This file was deleted.

10 changes: 0 additions & 10 deletions ci/setup_conda_env.sh

This file was deleted.

9 changes: 0 additions & 9 deletions ci/test.sh

This file was deleted.

1 change: 1 addition & 0 deletions requirements.txt
@@ -1,2 +1,3 @@
lxml>=4.2.4
beautifulsoup4>=4.6.1
flake8>=3.8.3

0 comments on commit 8b4c837

Please sign in to comment.