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 a7415b5 commit 0166b5e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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.7", "3.10"]
python-version: ["3.7", "3.11"]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
Expand Down
8 changes: 4 additions & 4 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"]

steps:
- uses: actions/checkout@v1
Expand All @@ -20,17 +20,17 @@ 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: Test with coverage and pytest
run: |
make test
- 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 }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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 0166b5e

Please sign in to comment.