Skip to content

Commit 5354c7f

Browse files
authored
v0.5.0 (beta): adds get_job_output_logfile and updates doc (#27)
API version 0.4.0
1 parent 6b846b6 commit 5354c7f

File tree

89 files changed

+5741
-2270
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+5741
-2270
lines changed

.env-template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
# - To expose: export $(grep -v '^#' .env | xargs -0)
44
#
55

6-
#OSPARC_API_URL=http://127.0.0.1:8000
7-
#OSPARC_API_KEY=replace-with-api-key
8-
#OSPARC_API_SECRET=replace-with-secret-key
6+
OSPARC_API_URL=http://127.0.0.1:8000
7+
OSPARC_API_KEY=replace-with-api-key
8+
OSPARC_API_SECRET=replace-with-secret-key

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
<!-- Common title prefixes/annotations:
2-
3-
WIP:
4-
bugfix:
5-
🏗️ maintenance:
6-
7-
(⚠️ devops) = changes in devops config required before deploying
2+
PREFIX:
3+
4+
WIP: work in progress
5+
🐛 Fix a bug.
6+
✨ Introduce new features.
7+
♻️ Refactor code.
8+
🚑️ Critical hotfix.
9+
⚗️ Perform experiments.
10+
⬆️ Upgrade dependencies.
11+
📝 Add or update documentation.
12+
🗑️ Deprecate code that needs to be cleaned up.
13+
⚰️ Remove dead code.
14+
🔥 Remove code or files.
15+
🔨 Add or update development scripts.
16+
17+
or from https://gitmoji.dev/
818
-->
919

1020
## What do these changes do?
@@ -31,17 +41,12 @@ e.g.
3141

3242
## Checklist
3343

34-
- [ ] ``test/test_workflows.py`` runs against fake server
35-
- [ ] Is [``api/openapi.json``](./api/openapi.json) up-to-date
36-
- [ ] Auto-doc generated
37-
- [ ] Links to notebooks modified
44+
- [ ] Update [``api/openapi.json``](./api/openapi.json)
45+
- [ ] Update code
46+
- [ ] Update doc
47+
- [ ] Follow NOTES.md](./NOTES.md)
3848

3949
<!-- This is YOUR section
4050
4151
Add here YOUR checklist/notes to guide and monitor the progress of the case!
42-
43-
e.g.
44-
- [ ] Runs in the swarm
45-
- [ ] Documentation reflects the changes
46-
- [ ] New module? Add your github username to [.github/CODEOWNERS](.github/CODEOWNERS)
4752
-->
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#
2+
# SEE https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
3+
#
4+
name: build-n-publish
5+
6+
on:
7+
push:
8+
tags:
9+
- v[0-9]+.[0-9]+.[0-9]+
10+
- staging_[a-zA-Z]+[0-9]+
11+
12+
jobs:
13+
build-n-publish:
14+
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up latest Python 3
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.x"
22+
- name: Upgrade package tools
23+
run: >-
24+
python -m pip install -U
25+
pip
26+
setuptools
27+
wheel
28+
- name: Install pypa/build
29+
run: >-
30+
python -m
31+
pip install
32+
build
33+
- name: Build a binary wheel and a source tarball
34+
run: >-
35+
python -m
36+
build
37+
--sdist
38+
--wheel
39+
--outdir dist/
40+
.
41+
- name: Publish distribution 📦 to *Test* PyPI
42+
uses: pypa/gh-action-pypi-publish@release/v1
43+
with:
44+
user: __token__
45+
password: ${{ secrets.TEST_PYPI_TOKEN }}
46+
repository_url: https://test.pypi.org/legacy/
47+
verbose: true
48+
- name: Publish distribution 📦 to PyPI
49+
uses: pypa/gh-action-pypi-publish@release/v1
50+
with:
51+
user: __token__
52+
password: ${{ secrets.PYPI_TOKEN }}

.github/workflows/deploy.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: test
22

3-
on:
3+
on:
44
push:
55
paths-ignore:
66
- "*.md"
@@ -23,24 +23,24 @@ jobs:
2323
strategy:
2424
max-parallel: 4
2525
matrix:
26-
python-version: [3.6, 3.7, 3.8]
26+
python-version: [3.6, 3.7, 3.8, 3.9]
2727
steps:
28-
- uses: actions/checkout@v2
29-
- name: Set up Python ${{ matrix.python-version }}
30-
uses: actions/setup-python@v2
31-
with:
32-
python-version: ${{ matrix.python-version }}
33-
- name: Pip cache
34-
uses: actions/cache@v2
35-
with:
36-
path: ~/.cache/pip
37-
key: ${{ runner.os }}-pip-{{ matrix.python-version }}
38-
restore-keys: |
39-
${{ runner.os }}-pip
40-
- name: Install and Test
41-
run: |
42-
pip install --upgrade nox
43-
nox -s test-${{ matrix.python-version }}
28+
- uses: actions/checkout@v3
29+
- name: Set up Python ${{ matrix.python-version }}
30+
uses: actions/setup-python@v4
31+
with:
32+
python-version: ${{ matrix.python-version }}
33+
- name: Pip cache
34+
uses: actions/cache@v3
35+
with:
36+
path: ~/.cache/pip
37+
key: ${{ runner.os }}-pip-{{ matrix.python-version }}
38+
restore-keys: |
39+
${{ runner.os }}-pip
40+
- name: Install and Test
41+
run: |
42+
pip install --upgrade nox
43+
nox -s test-${{ matrix.python-version }}
4444
# TODO: add coverage
4545
# - name: Upload coverage report
4646
# uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)