Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/sdk-reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,33 @@

jobs:
docs:
runs-on: ubuntu-latest
# Python 3.8 has no actions/python-versions build for ubuntu-26.04, which ubuntu-latest now resolves to.
runs-on: ubuntu-24.04
environment:
name: sdk-reference
url: ${{ steps.deploy.outputs.deployment-url }}
steps:
- uses: actions/checkout@v2
- name: Setup Nodejs
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies and build
run: pip install .[docs]
- name: Build docs
run: python setup.py build-docs
- name: Set env BRANCH
run: echo "BRANCH=$(echo $GITHUB_REF | cut -d'/' -f 3)" >> $GITHUB_ENV
- name: Set env CLOUDFLARE_BRANCH
run: |
if [[ $BRANCH == 'main' && $GITHUB_EVENT_NAME == 'push' ]]; then
echo "CLOUDFLARE_BRANCH=main" >> "$GITHUB_ENV"
else
echo "CLOUDFLARE_BRANCH=$BRANCH" >> "$GITHUB_ENV"
fi
- name: Publish to Cloudflare Pages
uses: cloudflare/wrangler-action@953926a2e2182532811c01a25e53647d93bf07c0 # v4.1.3
id: deploy
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,46 +11,48 @@

jobs:
pytest:
runs-on: ubuntu-latest
# Python 3.8 has no actions/python-versions build for ubuntu-26.04, which ubuntu-latest now resolves to.
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ["3.8", "3.x"]
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: pip install .[test]

- name: Run tests
run: python setup.py test

- name: Upload coverage to Codecov
if: ${{ always() }}
uses: codecov/codecov-action@v3

black:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium test

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: ubuntu-latest
# Python 3.8 has no actions/python-versions build for ubuntu-26.04, which ubuntu-latest now resolves to.
runs-on: ubuntu-24.04
name: Pylint and Black
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: "3.8"

- name: Install dependencies
run: pip install .

- name: Install pylint and black
run: pip install pylint black

- name: Run pylint
run: pylint nylas

- name: Run black
run: black .

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium test

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Loading