Skip to content

Commit

Permalink
fixed workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
birnbaum committed May 25, 2021
1 parent 77294ed commit c8fbf46
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ on:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7] # , 3.8, 3.9

python-version: [3.6, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -27,9 +25,3 @@ jobs:
python -m pip install .
- name: Run simple example
run: python examples/simple/main.py
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,17 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
python-version: '3.6'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .
- run: python setup.py --version
- name: Build
run: python setup.py sdist
- name: Publish
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
author_email="[email protected]",
description="Simulator for modeling energy consumption in cloud, fog, and edge computing environments",
long_description=long_description,
long_description_content_type='text/markdown',
keywords=["simulation", "modeling", "fog computing", "energy consumption", "edge computing"],
url="https://github.com/dos-group/leaf",
project_urls={
Expand All @@ -25,8 +26,8 @@
setup_requires=['setuptools_scm'],
install_requires=[
'networkx~=2.5',
'numpy~=1.20',
'pandas~=1.2',
'numpy~=1.19',
'pandas~=1.1',
'simpy~=4.0',
'tqdm~=4.0',
],
Expand Down

0 comments on commit c8fbf46

Please sign in to comment.