Skip to content

docs styling

docs styling #2

Workflow file for this run

name: torchcast
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
py-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
cache: 'pip'
cache-dependency-path: setup.py
python-version: ${{ matrix.py-version }}
- name: Install torchcast
run: pip install .[tests]
- name: Run tests
run: python3 -m unittest
docs:
needs: [ test ]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.10
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: 'arn:aws:iam::606444696334:role/strong-opx-github-actions-role'
aws-region: us-west-2
- name: Setup SSH Key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.STRONGMACHINE_PRIVATE_KEY }}
- name: Install dependencies
run: |
pip install awscli
pip install ".[docs]"
- name: Install pandoc
uses: pandoc/actions/setup@main
- name: Build docs
run: cd ./docs && make html
- name: Upload docs to S3
run: |
aws s3 cp --recursive docs/_build/html s3://docs.strong.io/torchcast --acl public-read