Skip to content

Commit

Permalink
refactor: updated releasing process
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Kryukov committed Dec 3, 2023
1 parent 266142c commit 849b49f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
max-parallel: 4
matrix:
os: [windows-latest, ubuntu-latest]
python-version: ["3.10"]
python-version: ["3.11"]
defaults:
run:
working-directory: python
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.10"]
python-version: ["3.11"]
defaults:
run:
working-directory: python
Expand All @@ -22,20 +22,20 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip setuptools wheel twine
python3 -m pip install --upgrade pip build wheel twine
python3 -m pip install -r requirements.txt
- name: Install module
run: |
python3 setup.py install
python3 -m pip install .
- name: Test with coverage and pytest
run: |
python3 -m pytest tests/
- name: Generate distribution archives
run: |
python3 setup.py sdist bdist_wheel
python3 -m build
- name: Upload the distribution archives
run: |
python3 -m twine upload dist/*
python3 -m twine upload --verbose dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

assert os.environ.get("GITHUB_REF_TYPE") == "tag"
assert os.environ.get("GITHUB_REF_NAME")
VERSION = os.environ["GITHUB_REF_NAME"]
VERSION = os.environ["GITHUB_REF_NAME"].lstrip("v")


with open("../README.md", "r") as fh:
Expand Down

0 comments on commit 849b49f

Please sign in to comment.