Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
thomass-dev committed Oct 4, 2024
1 parent 7efa77a commit 856628b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 24 deletions.
44 changes: 25 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,52 @@
name: Release

on:
release:
types: [released, prereleased]
# on:
# release:
# types: [released, prereleased]

on: [push]

jobs:
tag-restriction:
name: Tag must match semantic versioning pattern
runs-on: ubuntu-latest
environment: release
steps:
- shell: bash
run: |
if ! [[ "${GITHUB_REF_NAME}" =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-rc\.(1|[1-9][0-9]*))?$ ]]; then
exit -1
fi
# tag-restriction:
# name: Tag must match semantic versioning pattern
# runs-on: ubuntu-latest
# environment: release
# steps:
# - shell: bash
# run: |
# if ! [[ "${GITHUB_REF_NAME}" =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-rc\.(1|[1-9][0-9]*))?$ ]]; then
# exit -1
# fi

build:
name: Build package distributions
runs-on: ubuntu-latest
environment: release
# environment: release
permissions:
contents: read
needs: tag-restriction
# needs: tag-restriction
steps:
- uses: actions/checkout@v4

- name: Set up Node 20
uses: actions/setup-node@v4
with:
node-version: 20
# cache

- name: Build skore-ui and share library
shell: bash
run: make build-skore-ui

- name: Override VERSION.txt with tag
run: echo "${GITHUB_REF_NAME}" > skore/VERSION.txt
# run: echo "${GITHUB_REF_NAME}" > skore/VERSION.txt
run: echo "0.0.0-rc.1" > skore/VERSION.txt

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
# cache

- name: Build package distributions
run: |
Expand All @@ -65,7 +70,7 @@ jobs:
publish:
name: Publish package distributions to TestPyPI using trusted publisher
runs-on: ubuntu-latest
environment: release
# environment: release
permissions:
id-token: write
needs: build
Expand All @@ -76,15 +81,16 @@ jobs:
name: python-package-distributions
path: dist/

- name: Publish package distributions to TestPyPI
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verify-metadata: false
repository-url: https://test.pypi.org/legacy/

clean:
name: Delete package distributions artifacts
runs-on: ubuntu-latest
environment: release
# environment: release
if: always()
needs: publish
steps:
Expand Down
6 changes: 3 additions & 3 deletions skore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
## Installation

For now, the only supported method to use skore is from source.
Follow the instructions in [CONTRIBUTING.md](/CONTRIBUTING.md#quick-start) to install dependencies and start the UI.
Follow the instructions in [CONTRIBUTING.md](https://github.com/probabl-ai/skore/blob/main/CONTRIBUTING.md#quick-start) to install dependencies and start the UI.

## Quick start

For a complete introductory example, see our [basic usage notebook](/examples/basic_usage.ipynb). The resulting skore report has been exported to [this HTML file](https://gist.github.com/augustebaum/6b21dbd7f7d5a584fbf2c1956692574e): download it and open it in your browser to visualize it.
For a complete introductory example, see our [basic usage notebook](https://github.com/probabl-ai/skore/blob/main/examples/basic_usage.ipynb). The resulting skore report has been exported to [this HTML file](https://gist.github.com/augustebaum/6b21dbd7f7d5a584fbf2c1956692574e): download it and open it in your browser to visualize it.

In your shell, run the following to create a project file `project.skore` (the default) in your current working directory:
```sh
Expand Down Expand Up @@ -76,4 +76,4 @@ In the future, you will be able to:

## Contributing

See [CONTRIBUTING.md](/CONTRIBUTING.md) for more information and to contribute to the evolution of this library.
See [CONTRIBUTING.md](https://github.com/probabl-ai/skore/blob/main/CONTRIBUTING.md) for more information and to contribute to the evolution of this library.
2 changes: 0 additions & 2 deletions skore/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ classifiers=[
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
Expand Down

0 comments on commit 856628b

Please # to comment.