You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2020/12/13 13:24:22 UTC
[libcloud] 09/15: Move schedule job in a separate workflow.
This is an automated email from the ASF dual-hosted git repository.
tomaz pushed a commit to branch github_actions_take_2
in repository https://gitbox.apache.org/repos/asf/libcloud.git
commit 02986e7756349965c76851ce1b7b40ba07daaeed
Author: Tomaz Muraus <to...@tomaz.me>
AuthorDate: Sun Dec 13 14:07:34 2020 +0100
Move schedule job in a separate workflow.
---
.github/workflows/main.yml | 6 ++---
.github/workflows/publish_pricing_to_s3.yml | 37 +++++++++++++++++++++++++++++
2 files changed, 40 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index d38f06d..c1f7bf5 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -35,7 +35,7 @@ jobs:
fail-fast: false
matrix:
python_version:
- - 3.5,
+ - 3.5
- 3.6
- 3.7
- 3.8
@@ -150,5 +150,5 @@ jobs:
tox -e docs-travis
- name: Trigger ReadTheDocs build
run: |
- - pip3 install requests
- - python3 ./contrib/trigger_rtd_build.py
+ - pip install requests
+ - python ./contrib/trigger_rtd_build.py
diff --git a/.github/workflows/publish_pricing_to_s3.yml b/.github/workflows/publish_pricing_to_s3.yml
new file mode 100644
index 0000000..1c095fc
--- /dev/null
+++ b/.github/workflows/publish_pricing_to_s3.yml
@@ -0,0 +1,37 @@
+# Workflow which runs on daily basis and publishes pricing data to S3 bucket
+name: Publish pricing.json to S3 bucket
+
+on:
+ push:
+ branches:
+ - trunk
+ pull_request:
+ branches:
+ - trunk
+
+ schedule:
+ - cron: '0 2 * * *'
+
+jobs:
+ generate_and_publish_pricing_data:
+ name: Generate Code Coverage
+ runs-on: ubuntu-latest
+
+ strategy:
+ matrix:
+ python_version: [3.7]
+
+ steps:
+ - uses: actions/checkout@master
+ with:
+ fetch-depth: 1
+ - name: Use Python ${{ matrix.python_version }}
+ uses: actions/setup-python@v2
+ with:
+ python-version: ${{ matrix.python_version }}
+ - name: Install Python Dependencies
+ run: |
+ pip install "tox==3.20.1"
+ - name: Generate and publish pricing data
+ run: |
+ tox -escrape-and-publish-provider-prices