Skip to content

feat: View and create Storage methods using SDK #195

feat: View and create Storage methods using SDK

feat: View and create Storage methods using SDK #195

Workflow file for this run

name: Test
on:
push:
branches: [master]
pull_request:
branches: [master]
concurrency:
group: test
cancel-in-progress: true
jobs:
test-docs:
runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !github.event.pull_request.draft)
steps:
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: "3.11"
- run: |
python -m venv .venv
chmod +x .venv/bin/activate
.venv/bin/activate
- name: Install dependencies
run: |
make install
cd docs
pip install -r requirements.txt
- name: Build Docs
run: |
cd docs
make html SPHINXOPTS="-W"
test:
runs-on: ${{ matrix.os }}
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !github.event.pull_request.draft)
env:
REDBRICK_SDK_API_KEY: ${{ secrets.REDBRICK_SDK_API_KEY }}
REDBRICK_SDK_URL: ${{ secrets.REDBRICK_SDK_URL }}
REDBRICK_SDK_ORG_ID: ${{ secrets.REDBRICK_SDK_ORG_ID }}
REDBRICK_SDK_PROJECT_ID: ${{ secrets.REDBRICK_SDK_PROJECT_ID }}
REDBRICK_SDK_SOURCE: GITHUB
REDBRICK_SDK_DEBUG: 1
strategy:
fail-fast: false
matrix:
test: ["lint", "unit"]
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: python -m venv .venv
- run: |
chmod +x .venv/bin/activate
.venv/bin/activate
if: matrix.os == 'ubuntu-latest'
- run: |
chmod +x .venv/bin/activate
source .venv/bin/activate
if: matrix.os == 'macos-latest'
- run: .venv\Scripts\activate
if: matrix.os == 'windows-latest'
- name: Install dependencies
run: make install
- name: ${{ matrix.test }}
run: make ${{ matrix.test }}
- name: Upload to Codecov
if: matrix.test == 'unit' && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13'
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true