Skip to content

Commit 00426f9

Browse files
author
Pamy Carme
authored
Merge pull request #4 from ScienceLogic/fix-deps
Update build.yml to use the latest ubuntu latest as ubunut 18 is deprecated + skip semantic release for now
2 parents f3222bd + 50ba956 commit 00426f9

2 files changed

Lines changed: 21 additions & 25 deletions

File tree

.github/workflows/build.yml

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
python-version: [3.7, 3.8, 3.9]
15-
os: [ubuntu-18.04]
14+
python-version: [3.9]
15+
os: [ubuntu-latest]
1616

1717
steps:
1818
- name: Checkout
@@ -28,7 +28,7 @@ jobs:
2828
pip install -r requirements.txt
2929
pip install -r requirements_dev.txt
3030
- name: Run tests
31-
run: tox
31+
run: tox -vv
3232

3333
release:
3434
name: Release
@@ -39,25 +39,21 @@ jobs:
3939
uses: actions/checkout@v2
4040
with:
4141
fetch-depth: 0
42-
43-
- name: Setup Node.js
44-
uses: actions/setup-node@v2
45-
with:
46-
node-version: '16'
47-
48-
- name: Setup
49-
run: npm install -g semantic-release @semantic-release/github @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/git @semantic-release/release-notes-generator semantic-release-pypi
50-
51-
- name: Set up python
52-
uses: actions/setup-python@v2
42+
- name: Set up Python
43+
uses: actions/setup-python@v1
5344
with:
54-
python-version: 3.8
55-
56-
- name: Install setuptools
57-
run: python -m pip install --upgrade setuptools wheel twine
58-
59-
- name: Release
45+
python-version: '3.x'
46+
- name: Install twine
47+
run: |
48+
pip install twine
49+
pip install wheel
50+
pip install setuptools
51+
- name: Upload wheel
52+
if: ${{ github.ref == 'refs/heads/main' }}
6053
env:
61-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
63-
run: npx semantic-release
54+
TWINE_USERNAME: __token__
55+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
56+
TWINE_NON_INTERACTIVE: 1
57+
run: |
58+
python setup.py bdist_wheel
59+
twine upload dist/*.whl

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
universal = 1
33

44
[metadata]
5-
description-file = README.md
6-
version = 1.0.1
5+
description_file = README.md
6+
version = 1.0.2
77

0 commit comments

Comments
 (0)