Skip to content
Merged
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
53 changes: 28 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,36 @@ name: build

on: [push]

permissions:
contents: read

jobs:
build:
name: "nextplot build, lint & test"
runs-on: ubuntu-latest
strategy:
matrix:
# Tests are currently stable only for python 3.11
# due to the way we are testing
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
build:
name: "nextplot build, lint & test"
runs-on: ubuntu-latest
strategy:
matrix:
# Tests are currently stable only for python 3.11
# due to the way we are testing
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

# Install all development dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
# Install all development dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt

# Lint with ruff
- name: lint with ruff
run: ruff check --output-format=github .
# Lint with ruff
- name: lint with ruff
run: ruff check --output-format=github .

# Run the tests with pytest
- name: Test with pytest
run: python -m pytest -v -s
# Run the tests with pytest
- name: Test with pytest
run: python -m pytest -v -s
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ jobs:
release:
if: ${{ github.ref_type == 'branch' }}
uses: nextmv-io/release/.github/workflows/release.yml@develop
permissions:
contents: write # Required for creating releases and tags
pull-requests: write
with:
BRANCH: ${{ github.ref_name }}
REPOSITORY: nextplot
Expand Down Expand Up @@ -51,6 +54,8 @@ jobs:
needs: [release, publish]
if: ${{ needs.release.outputs.RELEASE_NEEDED == 'true' && needs.release.outputs.SHOULD_NOTIFY_SLACK == 'true' }}
uses: nextmv-io/release/.github/workflows/notify-slack.yml@develop
permissions:
contents: read
with:
PACKAGE_NAME: nextplot
VERSION: ${{ needs.release.outputs.VERSION }}
Expand Down
58 changes: 29 additions & 29 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,42 @@
name: pages

on:
# Runs on pushes to the content branch
push:
branches: ["content"]
# Runs on pushes to the content branch
push:
branches: ["content"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload content directory
path: "content/"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload content directory
path: "content/"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading