Skip to content

Commit

Permalink
Update CI configurations and README
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeKontsevik committed Sep 16, 2024
1 parent a163df7 commit e49fbff
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 38 deletions.
72 changes: 34 additions & 38 deletions .github/workflows/1dev_ci_on_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,38 @@ name: Build_and_Publish

on:
push:
branches:
- dev

jobs:
build:
# needs: test # Ensure 'test' job completes successfully
runs-on: ubuntu-latest

steps:

- name: Check out repository
uses: actions/checkout@v3

branches:
# - dev
- master # Добавьте эту строку, если хотите публиковать и при пуше в master

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11' # Use the latest Python version or your preferred version for building

- name: Install env
run: |
python -m pip install --upgrade pip
pip install --upgrade poetry
poetry self update
pip install virtualenv filelock
poetry config virtualenvs.create true
- name: Install dependencies
run: poetry install

- name: Publish
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: __token__
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
rm -rf dist/
poetry publish --build --username __token__ --password ${{ secrets.PYPI_TOKEN }} --no-interaction
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install env
run: |
python -m pip install --upgrade pip
pip install --upgrade poetry
poetry self update
pip install virtualenv filelock
poetry config virtualenvs.create true
- name: Install dependencies
run: poetry install

- name: Publish
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: __token__
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
rm -rf dist/
poetry publish --build --username __token__ --password ${{ secrets.PYPI_TOKEN }} --no-interaction
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![PythonVersion](https://img.shields.io/badge/python-3.11-blue)](https://pypi.org/project/scikit-learn/)
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Tests](https://github.com/GeorgeKontsevik/sloyka/actions/workflows/2dev_ci_on_pr.yaml/badge.svg?branch=master)](https://github.com/GeorgeKontsevik/sloyka/actions/workflows/2dev_ci_on_pr.yaml)
[![Build and Publish](https://github.com/GeorgeKontsevik/sloyka/actions/workflows/1dev_ci_on_push.yaml/badge.svg?branch=dev)](https://github.com/GeorgeKontsevik/sloyka/actions/workflows/1dev_ci_on_push.yaml)

[![sloyka_community_chat](https://img.shields.io/badge/-community-blue?logo=telegram)](https://t.me/sloyka_community)
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1wCUJAqlq9GMKw1wpTsWrzYwr10pWDeHv?usp=sharing)
Expand Down

0 comments on commit e49fbff

Please sign in to comment.