diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a9fec840..18c6361f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,8 +21,8 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.6, 3.7] - + python-version: [3.6, 3.7, 3.8] + env: UCI_DB: "https://archive.ics.uci.edu/ml/machine-learning-databases" PROPUBLICA_GH: "https://raw.githubusercontent.com/propublica/compas-analysis/bafff5da3f2e45eca6c2d5055faad269defd135a" @@ -37,7 +37,7 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - + - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel @@ -45,7 +45,7 @@ jobs: pip install -e '.[all]' pip install flake8 pip list - + - name: Download datasets run: | wget ${UCI_DB}/adult/adult.data -P aif360/data/raw/adult/ @@ -54,29 +54,29 @@ jobs: wget ${UCI_DB}/statlog/german/german.data -P aif360/data/raw/german/ wget ${UCI_DB}/statlog/german/german.doc -P aif360/data/raw/german/ wget ${PROPUBLICA_GH}/compas-scores-two-years.csv -P aif360/data/raw/compas/ - + - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - + - name: Test with pytest run: pytest tests - + build-r: runs-on: ubuntu-16.04 - + strategy: fail-fast: false matrix: - python-version: [3.6, 3.7] - + python-version: [3.6, 3.7, 3.8] + steps: - name: Check out repo uses: actions/checkout@v2 - + - name: Set up R uses: r-lib/actions/setup-r@v1 @@ -88,11 +88,11 @@ jobs: - name: Install R dependencies run: install.packages(c("reticulate", "rstudioapi", "testthat")) shell: Rscript {0} - + - name: Install Python dependencies run: | python -m pip install --upgrade pip setuptools wheel pip install '.[all]' - + - name: Install R package run: R CMD INSTALL aif360/aif360-r diff --git a/README.md b/README.md index 2e6af7e1..4ccea869 100644 --- a/README.md +++ b/README.md @@ -74,9 +74,9 @@ Supported Python Configurations: | OS | Python version | | ------- | -------------- | -| macOS | 3.6, 3.7 | -| Ubuntu | 3.6, 3.7 | -| Windows | 3.6, 3.7 | +| macOS | 3.6, 3.7, 3.8 | +| Ubuntu | 3.6, 3.7, 3.8 | +| Windows | 3.6, 3.7, 3.8 | ### (Optional) Create a virtual environment