-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from eclipse-volttron/releases/0.2.0-rc
Releases/0.2.0 rc
- Loading branch information
Showing
22 changed files
with
1,121 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: unconfirmed | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Run command '...' | ||
3. Scroll down to '...' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**System (please complete the following information):** | ||
- `VOLTTRON SQL Historian` version: [e.g. 0.2.1] | ||
- Python version: [e.g. 3.8] | ||
- OS: [Windows/Linux] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: feature | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Add bugs to bugs project | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
add-to-project: | ||
name: Add issue to project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
# You can target a repository in a different organization | ||
# to the issue | ||
project-url: https://github.com/orgs/eclipse-volttron/projects/3 | ||
# project-url: https://github.com/orgs/<orgName>/projects/<projectNumber> | ||
# github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} | ||
github-token: ${{ secrets.AUTO_PROJECT_PAT }} | ||
# labeled: bug, needs-triage | ||
# label-operator: OR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ main, develop, releases ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ main, develop, releases ] | ||
schedule: | ||
- cron: '34 10 * * 4' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'python' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] | ||
# Learn more about CodeQL language support at https://git.io/codeql-language-support | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
# queries: ./path/to/local/query, your-org/your-repo/queries@main | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v1 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
#- run: | | ||
# make bootstrap | ||
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
name: Deploy Pre-Release Artifacts | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
env: | ||
LANG: en_US.utf-8 | ||
LC_ALL: en_US.utf-8 | ||
PYTHON_VERSION: '3.10' | ||
PROJECT_NAME: volttron-lib-sql-historian | ||
POETRY_VERSION: '1.2.2' | ||
|
||
jobs: | ||
|
||
deploy-pre-release: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | ||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | ||
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | ||
|
||
#---------------------------------------------- | ||
# check-out repo and set-up python | ||
#---------------------------------------------- | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python ${{ env.PYTHON_VERSION }} | ||
id: setup-python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
#---------------------------------------------- | ||
# ----- install & configure poetry ----- | ||
#---------------------------------------------- | ||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: ${{ env.POETRY_VERSION }} | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
installer-parallel: true | ||
|
||
#---------------------------------------------- | ||
# load cached venv if cache exists | ||
#---------------------------------------------- | ||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v3 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} | ||
|
||
#---------------------------------------------- | ||
# install dependencies if cache does not exist | ||
#---------------------------------------------- | ||
- name: Install dependencies | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: poetry install --no-interaction --no-root | ||
|
||
#---------------------------------------------- | ||
# install your root project, if required | ||
#---------------------------------------------- | ||
- name: Install library | ||
run: | | ||
poetry install --no-interaction | ||
#---------------------------------------------- | ||
# bump version number for patch | ||
#---------------------------------------------- | ||
- name: Bump Version | ||
run: | | ||
# current_tag is the last tagged release in the repository. From there | ||
# we need to remove the v from the beginning of the tag. | ||
if ! $(git tag -l "v*" = ''); then | ||
# uses -V which is version sort to keep it monotonically increasing. | ||
current_tag=$(git tag -l "v*" | grep --invert-match '-' | sort --reverse -V | sed -n 1p) | ||
else | ||
current_tag=v0.1.0 | ||
fi | ||
current_tag=${current_tag#?} | ||
# current_tag is now the version we want to set our poetry version so | ||
# that we can bump the version | ||
poetry version ${current_tag} | ||
poetry version prerelease --no-interaction | ||
NEW_TAG=v$(poetry version --short) | ||
# Finally because we want to be able to use the variable in later | ||
# steps we set a NEW_TAG environmental variable | ||
echo "NEW_TAG=$(echo ${NEW_TAG})" >> $GITHUB_ENV | ||
#--------------------------------------------------------------- | ||
# create build artifacts to be included as part of release | ||
#--------------------------------------------------------------- | ||
- name: Create build artifacts | ||
run: | | ||
poetry build -vvv | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "dist/*.gz,dist/*.whl" | ||
artifactErrorsFailBuild: true | ||
generateReleaseNotes: true | ||
commit: ${{ github.ref }} | ||
prerelease: true | ||
tag: ${{ env.NEW_TAG }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Publish pre-release to pypi | ||
if: github.repository == "eclipse-volttron/${{env.PROJECT_NAME}}" | ||
run: | | ||
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | ||
poetry publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Respond to downstream test runs as part of downstream testing | ||
|
||
|
||
on: | ||
repository_dispatch: | ||
# To add more test responses from volttron modular repos, | ||
# put the name of the event type in the list below. | ||
# The name of the event type should come from Workflow | ||
# that is triggering this workflow. | ||
# For example, 'VOLTTRON/volttron-listener-agent` repo has a workflow | ||
# called downstream-testing-dispatch.yml that will send a repository | ||
# dispatch to this repo using with an event type called "listener-downstream-testing-response" | ||
types: [listener-downstream-testing-response] | ||
|
||
jobs: | ||
test-response: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- name: Repository Dispatch Triggered | ||
run: | | ||
echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | ||
echo "Event '${{ github.event.action }}' received from '${{ github.event.client_payload.repository }}'" | ||
echo "Payload from downstream workflow: '${{ toJson(github.event.client_payload) }}'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
# Documentation located | ||
# https://github.com/marketplace/actions/publish-python-poetry-package | ||
name: Publish to PyPi | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
env: | ||
LANG: en_US.utf-8 | ||
LC_ALL: en_US.utf-8 | ||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
|
||
jobs: | ||
|
||
publish_to_pypi: | ||
|
||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | ||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | ||
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build and publish to pypi | ||
uses: JRubics/[email protected] | ||
with: | ||
# These are only needed when using test.pypi | ||
#repository_name: testpypi | ||
#repository_url: https://test.pypi.org/legacy/ | ||
pypi_token: ${{ secrets.PYPI_TOKEN }} | ||
ignore_dev_requirements: "yes" |
Oops, something went wrong.