Skip to content

Commit

Permalink
Update Python bits
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Jan 9, 2024
1 parent 7b40305 commit e4bca52
Show file tree
Hide file tree
Showing 4 changed files with 1,346 additions and 1,023 deletions.
51 changes: 23 additions & 28 deletions .github/workflows/continuous-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install pipenv
run: pipx install pipenv

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.11'
cache: 'pipenv'

- name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python

- id: pipenv-install
name: Install Python dependencies
run: pipenv install --python `which python` --skip-lock flake8 flake8-docstrings flake8-bugbear
run: pipenv sync --dev

- id: run
name: Run
Expand All @@ -30,21 +30,21 @@ jobs:
test-python:
strategy:
matrix:
python: ['3.7', '3.8', '3.9',]
python: ['3.9', '3.10', '3.11']
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install pipenv
run: pipx install pipenv

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pipenv'

- name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python

- id: pipenv-install
name: Install Python dependencies
run: pipenv install --python `which python` --skip-lock tldextract scikit-learn dill pandas pytest
Expand All @@ -60,20 +60,19 @@ jobs:
needs: [test-python]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install pipenv
run: pipx install pipenv

- uses: actions/setup-python@v3
- uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.11'
cache: 'pipenv'

- id: install-python-dependencies
- name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python

- id: pipenv-install
name: Install Python dependencies
run: pipenv install --dev --python `which python`
shell: bash
run: pipenv sync --dev

- id: build
name: Build release
Expand All @@ -90,7 +89,7 @@ jobs:

- id: save
name: Save artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: test-release-${{ github.run_number }}
path: ./dist
Expand All @@ -102,13 +101,9 @@ jobs:
needs: [test-build]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/setup-python@v2
with:
python-version: '3.9'

- id: fetch
name: Fetch artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: test-release-${{ github.run_number }}
path: ./dist
Expand Down
3 changes: 2 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ twine = "*"
setuptools-scm = "*"
jupyterlab = "*"
dill = "*"
sphinx-palewire-theme = "*"

[requires]
python_version = "3.9"
python_version = "3.11"

0 comments on commit e4bca52

Please sign in to comment.