diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index b0a19e9..2a30003 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -8,8 +8,29 @@ on: branches: [ main ] jobs: + check-source-changes: + runs-on: ubuntu-latest + outputs: + run_job: ${{ steps.changed-files.outputs.any_changed }} + steps: + - name: Checkout Sourcecode + uses: actions/checkout@v4 + + - name: Check for changes in source code + id: changed-files + uses: tj-actions/changed-files@v41.0.1 + with: + files: | + purpleair_api/*.py + tests/*.py + tests/*.txt + setup.py + setup.cfg + black: runs-on: ubuntu-latest + needs: check-source-changes + if: needs.check-source-changes.outputs.run_job == 'true' steps: - uses: actions/checkout@v4 - uses: psf/black@23.12.1 \ No newline at end of file diff --git a/.github/workflows/sphinx_build.yml b/.github/workflows/sphinx_build.yml index 32a3daa..0a596c2 100644 --- a/.github/workflows/sphinx_build.yml +++ b/.github/workflows/sphinx_build.yml @@ -8,8 +8,27 @@ on: branches: [ main ] jobs: + check-source-changes: + runs-on: ubuntu-latest + outputs: + run_job: ${{ steps.changed-files.outputs.any_changed }} + steps: + - name: Checkout Sourcecode + uses: actions/checkout@v4 + + - name: Check for changes in source code + id: changed-files + uses: tj-actions/changed-files@v41.0.1 + with: + files: | + sphinx_docs_build/source/*.rst + sphinx_docs_build/source/*.py + sphinx_docs_build/*.txt + sphinx_docs_build: runs-on: ubuntu-latest + needs: check-source-changes + if: needs.check-source-changes.outputs.run_job == 'true' steps: - name: Check out repository code uses: actions/checkout@v4 @@ -19,21 +38,23 @@ jobs: with: python-version: "3.10" - - name: Install python3 requirements... + - name: Install python3/os requirements... uses: carlkidcrypto/os-specific-runner@v2.0.0 with: linux: cd /home/runner/work/purpleair_data_logger/purpleair_data_logger/ && - python -m pip install --upgrade wheel && - python -m pip install --upgrade setuptools && - python -m pip install --upgrade pip && - python -m pip install -r sphinx_docs_build/requirements.txt && - python -m pip install . --user + python -m pip install --upgrade wheel && + python -m pip install --upgrade setuptools && + python -m pip install --upgrade pip && + python -m pip install -r sphinx_docs_build/requirements.txt && + python -m pip install . --user; - name: Run sphinx... uses: carlkidcrypto/os-specific-runner@v2.0.0 with: - linux: cd /home/runner/work/purpleair_data_logger/purpleair_data_logger/sphinx_docs_build ; - make html + linux: cd /home/runner/work/purpleair_data_logger/purpleair_data_logger/sphinx_docs_build; + mkdir source/_static; + mkdir source/_templates; + make clean && make html SPHINXOPTS="-W" - uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ea8b00d..0e7a59f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,9 +8,30 @@ on: branches: [ main ] jobs: + check-source-changes: + runs-on: ubuntu-latest + outputs: + run_job: ${{ steps.changed-files.outputs.any_changed }} + steps: + - name: Checkout Sourcecode + uses: actions/checkout@v4 + + - name: Check for changes in source code + id: changed-files + uses: tj-actions/changed-files@v41.0.1 + with: + files: | + purpleair_api/*.py + tests/*.py + tests/*.txt + setup.py + setup.cfg + Unit_Tests: name: ${{ matrix.os }} using Python ${{ matrix.python-version }} runs-on: ${{ matrix.os }} + needs: check-source-changes + if: needs.check-source-changes.outputs.run_job == 'true' strategy: fail-fast: false matrix: diff --git a/LICENSE b/LICENSE index 9c9bf4b..8fa64e9 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 carlkidcrypto +Copyright (c) 2024 carlkidcrypto Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/docs/doctrees/PurpleAirCSVDataLogger.doctree b/docs/doctrees/PurpleAirCSVDataLogger.doctree index 387136c..2b8d774 100644 Binary files a/docs/doctrees/PurpleAirCSVDataLogger.doctree and b/docs/doctrees/PurpleAirCSVDataLogger.doctree differ diff --git a/docs/doctrees/PurpleAirCSVDataLoggerConstants.doctree b/docs/doctrees/PurpleAirCSVDataLoggerConstants.doctree index 0b9e9fc..77478b1 100644 Binary files a/docs/doctrees/PurpleAirCSVDataLoggerConstants.doctree and b/docs/doctrees/PurpleAirCSVDataLoggerConstants.doctree differ diff --git a/docs/doctrees/PurpleAirDataLogger.doctree b/docs/doctrees/PurpleAirDataLogger.doctree index 31ba131..c94e95c 100644 Binary files a/docs/doctrees/PurpleAirDataLogger.doctree and b/docs/doctrees/PurpleAirDataLogger.doctree differ diff --git a/docs/doctrees/PurpleAirDataLoggerHelpers.doctree b/docs/doctrees/PurpleAirDataLoggerHelpers.doctree index 25f8a94..3a5f9c7 100644 Binary files a/docs/doctrees/PurpleAirDataLoggerHelpers.doctree and b/docs/doctrees/PurpleAirDataLoggerHelpers.doctree differ diff --git a/docs/doctrees/PurpleAirPSQLDataLogger.doctree b/docs/doctrees/PurpleAirPSQLDataLogger.doctree index a3cb89b..24c11e3 100644 Binary files a/docs/doctrees/PurpleAirPSQLDataLogger.doctree and b/docs/doctrees/PurpleAirPSQLDataLogger.doctree differ diff --git a/docs/doctrees/PurpleAirPSQLQueryStatements.doctree b/docs/doctrees/PurpleAirPSQLQueryStatements.doctree index bd47b61..428e625 100644 Binary files a/docs/doctrees/PurpleAirPSQLQueryStatements.doctree and b/docs/doctrees/PurpleAirPSQLQueryStatements.doctree differ diff --git a/docs/doctrees/PurpleAirSQLiteDataLogger.doctree b/docs/doctrees/PurpleAirSQLiteDataLogger.doctree index 7f306e1..41740e3 100644 Binary files a/docs/doctrees/PurpleAirSQLiteDataLogger.doctree and b/docs/doctrees/PurpleAirSQLiteDataLogger.doctree differ diff --git a/docs/doctrees/PurpleAirSQLiteQueryStatements.doctree b/docs/doctrees/PurpleAirSQLiteQueryStatements.doctree index 3d61d38..ed1d41e 100644 Binary files a/docs/doctrees/PurpleAirSQLiteQueryStatements.doctree and b/docs/doctrees/PurpleAirSQLiteQueryStatements.doctree differ diff --git a/docs/doctrees/environment.pickle b/docs/doctrees/environment.pickle index 301a829..1da704c 100644 Binary files a/docs/doctrees/environment.pickle and b/docs/doctrees/environment.pickle differ diff --git a/docs/doctrees/index.doctree b/docs/doctrees/index.doctree index 2ad2ebe..baff603 100644 Binary files a/docs/doctrees/index.doctree and b/docs/doctrees/index.doctree differ diff --git a/docs/doctrees/modules.doctree b/docs/doctrees/modules.doctree index 9f15049..28f48f3 100644 Binary files a/docs/doctrees/modules.doctree and b/docs/doctrees/modules.doctree differ diff --git a/docs/html/.buildinfo b/docs/html/.buildinfo index ee9cb24..f23d997 100644 --- a/docs/html/.buildinfo +++ b/docs/html/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 0b1b98e3b37c52bd7574e3f8e7b12205 +config: d6e08cb550a57d43948f794f51590dcf tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/docs/html/PurpleAirCSVDataLogger.html b/docs/html/PurpleAirCSVDataLogger.html index 9787d79..c430253 100644 --- a/docs/html/PurpleAirCSVDataLogger.html +++ b/docs/html/PurpleAirCSVDataLogger.html @@ -4,7 +4,7 @@ -
© Copyright 2023, carlkidcrypto.
+© Copyright 2024, carlkidcrypto.
© Copyright 2023, carlkidcrypto.
+© Copyright 2024, carlkidcrypto.
© Copyright 2023, carlkidcrypto.
+© Copyright 2024, carlkidcrypto.
© Copyright 2023, carlkidcrypto.
+© Copyright 2024, carlkidcrypto.
© Copyright 2023, carlkidcrypto.
+© Copyright 2024, carlkidcrypto.
© Copyright 2023, carlkidcrypto.
+© Copyright 2024, carlkidcrypto.
© Copyright 2023, carlkidcrypto.
+© Copyright 2024, carlkidcrypto.
© Copyright 2023, carlkidcrypto.
+© Copyright 2024, carlkidcrypto.
© Copyright 2023, carlkidcrypto.
+© Copyright 2024, carlkidcrypto.
© Copyright 2023, carlkidcrypto.
+© Copyright 2024, carlkidcrypto.
Built with Sphinx using a diff --git a/docs/html/modules.html b/docs/html/modules.html index aa75a0d..8d93a27 100644 --- a/docs/html/modules.html +++ b/docs/html/modules.html @@ -4,7 +4,7 @@ -© Copyright 2023, carlkidcrypto.
+© Copyright 2024, carlkidcrypto.
© Copyright 2023, carlkidcrypto.
+© Copyright 2024, carlkidcrypto.
© Copyright 2023, carlkidcrypto.
+© Copyright 2024, carlkidcrypto.