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
28 changes: 28 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build docs
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: mamba-org/[email protected]
with:
environment-file: ./environment-dev.yml
init-shell: bash
create-args: --verbose
cache-environment: true
cache-downloads: false

- name: "Build docs"
shell: bash -el {0}
run: |
micromamba activate ultraplot-dev
pip install .
cd docs
make html
27 changes: 27 additions & 0 deletions .github/workflows/build-ultraplot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build and Test
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3
- uses: mamba-org/[email protected]
with:
environment-file: ./environment-dev.yml
init-shell: bash
create-args: --verbose
cache-environment: true
cache-downloads: false

- name: Test Ultraplot
shell: bash -el {0}
run: |
micromamba activate ultraplot-dev
pip install .
python -m pytest
46 changes: 46 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Publish to PyPI
on:
release:
types: [published]
push:
tags: ["v*"]

jobs:
publish-pypi-test:
runs-on: ubuntu-latest
if: github.event_name == 'push'
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Build package
run: |
python -m pip install build
python -m build
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

publish-prod:
needs: publish-test
runs-on: ubuntu-latest
if: github.event_name == 'release'
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Build package
run: |
python -m pip install build
python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
159 changes: 0 additions & 159 deletions .github/workflows/ultraplot.yml

This file was deleted.

Loading