Skip to content

Commit

Permalink
support Python 3.8
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Hoffman <[email protected]>
  • Loading branch information
hoffmansc committed Feb 24, 2021
1 parent 7448dee commit 60ba1b7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -37,15 +37,15 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install numpy==1.19.5
pip install -e '.[all]'
pip install flake8
pip list
- name: Download datasets
run: |
wget ${UCI_DB}/adult/adult.data -P aif360/data/raw/adult/
Expand All @@ -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

Expand All @@ -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
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 60ba1b7

Please sign in to comment.