Skip to content

Commit

Permalink
Merge pull request #296 from furlongm/reorg
Browse files Browse the repository at this point in the history
reorg to a more typical flask app
  • Loading branch information
furlongm authored Dec 21, 2024
2 parents 2f89e29 + e816497 commit 70d009a
Show file tree
Hide file tree
Showing 303 changed files with 1,295 additions and 1,020 deletions.
57 changes: 15 additions & 42 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,24 @@
name: "Code scanning - action"
name: "Code Scanning - Action"

on:
push:
branches: [main]
pull_request:
schedule:
- cron: '0 15 * * 2'
branches: [main]

jobs:
CodeQL-Build:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# If this run was triggered by a pull request event, then checkout
# the head of the pull request instead of the merge commit.
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# 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
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
- run: git checkout HEAD^2
if: ${{ github.event_name == 'pull_request' }}
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
22 changes: 10 additions & 12 deletions .github/workflows/create-release-and-upload-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
check-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: check-version
run: |
version=$(echo "${{ github.ref }}" | cut -d/ -f3)
Expand All @@ -17,7 +17,7 @@ jobs:
needs: check-version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Create release
id: create_release
uses: actions/create-release@v1
Expand All @@ -32,26 +32,24 @@ jobs:
run: |
echo "${{ steps.create_release.outputs.upload_url }}" > upload_url.txt
- name: Upload upload_url artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: upload_url.txt
path: upload_url.txt
build-and-upload-deb-asset:
needs: create-release
runs-on: ubuntu-latest
container:
image: debian:buster
image: debian:bookworm
steps:
- name: Install build dependencies
run: |
apt update
export DEBIAN_FRONTEND=noninteractive
apt -y install python3-stdeb dh-python
# https://bugs.launchpad.net/bugs/1916551
sed -i -e "s/python-all/python3-all/g" /usr/lib/python3/dist-packages/stdeb/util.py
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Download upload_url artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: upload_url.txt
- name: Get upload_url
Expand Down Expand Up @@ -82,9 +80,9 @@ jobs:
- name: Install build dependencies
run: |
dnf -y install rpm-build python3 python3-setuptools git
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Download upload_url artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: upload_url.txt
- name: Get upload_url
Expand All @@ -110,9 +108,9 @@ jobs:
needs: create-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.x']
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
include README.md
include openvpn-monitor.py
recursive-include openvpn_monitor *.py
include openvpn-monitor.conf.example
include AUTHORS
include COPYING
include MANIFEST.in
include VERSION.txt
include requirements.txt
recursive-include images *
recursive-include openvpn_monitor/static/images *
Loading

0 comments on commit 70d009a

Please sign in to comment.