Skip to content

Commit c8fbf46

Browse files
committed
fixed workflows
1 parent 77294ed commit c8fbf46

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ on:
99

1010
jobs:
1111
build:
12-
1312
runs-on: ubuntu-latest
1413
strategy:
1514
matrix:
16-
python-version: [3.7] # , 3.8, 3.9
17-
15+
python-version: [3.6, 3.9]
1816
steps:
1917
- uses: actions/checkout@v2
2018
- name: Set up Python ${{ matrix.python-version }}
@@ -27,9 +25,3 @@ jobs:
2725
python -m pip install .
2826
- name: Run simple example
2927
run: python examples/simple/main.py
30-
- name: Publish package
31-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
32-
uses: pypa/gh-action-pypi-publish@release/v1
33-
with:
34-
user: __token__
35-
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v2
12+
- name: Fetch all history for all tags and branches
13+
run: git fetch --prune --unshallow
1214
- name: Set up Python
1315
uses: actions/setup-python@v2
1416
with:
15-
python-version: '3.8'
17+
python-version: '3.6'
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
python -m pip install .
22+
- run: python setup.py --version
1623
- name: Build
1724
run: python setup.py sdist
1825
- name: Publish

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
author_email="wiesner@tu-berlin.de",
1414
description="Simulator for modeling energy consumption in cloud, fog, and edge computing environments",
1515
long_description=long_description,
16+
long_description_content_type='text/markdown',
1617
keywords=["simulation", "modeling", "fog computing", "energy consumption", "edge computing"],
1718
url="https://github.com/dos-group/leaf",
1819
project_urls={
@@ -25,8 +26,8 @@
2526
setup_requires=['setuptools_scm'],
2627
install_requires=[
2728
'networkx~=2.5',
28-
'numpy~=1.20',
29-
'pandas~=1.2',
29+
'numpy~=1.19',
30+
'pandas~=1.1',
3031
'simpy~=4.0',
3132
'tqdm~=4.0',
3233
],

0 commit comments

Comments
 (0)