Skip to content

Commit

Permalink
ADD: auto release (#90)
Browse files Browse the repository at this point in the history
* Update release_pypi.yam

* Lock (#89)

* FIX: repeated version of nbstripout

* ADD: PyPI shield

* ADD: .lock file

* FIX: removed appearance of Python 3.8

* ENH: PR CI Python version 3.8->3.11
  • Loading branch information
VincentAuriau authored May 28, 2024
1 parent 0775ca9 commit bbd8f6e
Show file tree
Hide file tree
Showing 6 changed files with 3,214 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v2
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/release_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ jobs:
publish-service-client-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Print
run: ls /home/runner/work/choice-learn/choice-learn
- name: Publish choice-learn on TestPyPI
uses: code-specialist/pypi-poetry-publish@v1
with:
PACKAGE_DIRECTORY: "./choice_learn/"
PYTHON_VERSION: "3.8"
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_REGISTRY_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }}
PUBLISH_REGISTRY_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }}
PUBLISH_REGISTRY: "https://test.pypi.org/simple/"
BRANCH: main
- name: Install from TestPyPI & run tests with installed package
run: |
pip uninstall -y -r <(pip freeze)
Expand All @@ -27,5 +31,6 @@ jobs:
with:
PACKAGE_DIRECTORY: "./choice_learn/"
PYTHON_VERSION: "3.8"
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_REGISTRY_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PUBLISH_REGISTRY_USER: ${{ secrets.PYPI_USERNAME }}
BRANCH: main
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
*Large-scale choice modeling through the lens of machine learning*

[![CI status](https://github.com/artefactory/choice-learn/actions/workflows/ci.yaml/badge.svg)](https://github.com/artefactory/choice-learn/actions/workflows/ci.yaml?query=branch%3Amain)
[![Python Version](https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10-blue.svg)]()
[![Linting , formatting, imports sorting: ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![security: bandit](https://img.shields.io/badge/security-bandit-yellow.svg)](https://github.com/PyCQA/bandit)
[![Pre-commit](https://img.shields.io/badge/pre--commit-enabled-informational?logo=pre-commit&logoColor=white)](https://github.com/artefactory/choice-learn/blob/main/.pre-commit-config.yaml)


[![Python Version](https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11-blue.svg)]()
![PyPI - Version](https://img.shields.io/pypi/v/choice-learn)

</div>


Expand Down Expand Up @@ -86,7 +89,7 @@ git clone git@github.com:artefactory/choice-learn.git

### Dependencies
Choice-Learn requires the following:
- Python (>=3.8)
- Python (>=3.9)
- NumPy (>=1.24)
- pandas (>=1.5)

Expand Down
Loading

0 comments on commit bbd8f6e

Please sign in to comment.