Skip to content

Commit

Permalink
Merge pull request #5 from predictive-analytics-lab/poetry
Browse files Browse the repository at this point in the history
replace setup.py with poetry
  • Loading branch information
tmke8 authored Feb 18, 2021
2 parents 08b601a + 1aedebf commit 29acfc5
Show file tree
Hide file tree
Showing 4 changed files with 573 additions and 37 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,30 @@ jobs:
ubuntu:

runs-on: ubuntu-latest
env:
POETRY_VIRTUALENVS_CREATE: false

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install packages
- name: Set up Poetry cache for Python dependencies
uses: actions/cache@v2
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: ${{ runner.os }}-poetry-
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install black mypy pytest isort
pip install -e .
curl -fsS -o get-poetry.py https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
python get-poetry.py -y
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
rm get-poetry.py
- name: Install dependencies
run: poetry install --no-interaction
- name: Format with black
run: |
python -m black --check .
Expand Down
Loading

0 comments on commit 29acfc5

Please sign in to comment.