From b71a9c44cf960a3ac693ea69f7c65a85a9bc5e77 Mon Sep 17 00:00:00 2001 From: Corey Buckley Date: Wed, 22 Apr 2020 01:00:27 -0400 Subject: [PATCH] Set up what the workflow file should look like --- .github/workflows/fetch_and_send.yml | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/fetch_and_send.yml diff --git a/.github/workflows/fetch_and_send.yml b/.github/workflows/fetch_and_send.yml new file mode 100644 index 0000000..b62ab1d --- /dev/null +++ b/.github/workflows/fetch_and_send.yml @@ -0,0 +1,38 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Update yacs.n RPI data + +on: + #schedule: + # - cron: '0 */2 * * *' + check_run: + types: 'rerequested' + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.5, 3.6, 3.7, 3.8] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Run data fetcher & processor + run: | + python modules/rpi_parse.py + - name: Send to yacs.n + with: + DP_USER: ${{ secrets.DP_USER }} + DP_PASS: ${{ secrets.DP_PASS }} + run: | + python dist/update_yacs.py