Skip to content

Commit

Permalink
Test New API V1.2.0a1 (#147)
Browse files Browse the repository at this point in the history
* new dep

- using the new dep.

* Update build_and_publish_to_test_pypi.yml

- make it check for new files

* Update behave_tests.yml

- adding file check

* Update setup.cfg

- bumping to a test version.
  • Loading branch information
carlkidcrypto authored Sep 20, 2024
1 parent 3e225e8 commit 650741f
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 6 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/behave_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,28 @@ 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 setup.py/cfg
id: changed-files
uses: tj-actions/changed-files@v45.0.2
with:
files: |
purpleair_data_logger/*.py
setup.py
setup.cfg
build-and-test:
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:
Expand Down
21 changes: 19 additions & 2 deletions .github/workflows/build_and_publish_to_test_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,32 @@

name: TestPyPI Distributions
concurrency: build_and_publish_to_test_pypi

on:
push:
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 setup.py/cfg
id: changed-files
uses: tj-actions/changed-files@v45.0.2
with:
files: |
setup.py
setup.cfg
build-n-publish-test-pypi:
name: Build and Publish
name: Build and Publish To Test PyPi
runs-on: ubuntu-latest
needs: check-source-changes
if: needs.check-source-changes.outputs.run_job == 'true'

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
**/.pyc/**
**/.DS_Store/**
**/dist/**
**/build/**
**/__pycache__/**
**/purpleair_data_logger.egg-info/**
**/logs/**
**.ini
**.xml
.DS_Store
**.DS_Store**
**venv**
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = purpleair_data_logger
version = 1.3.3
version = 1.4.0a1
license = MIT
author = Carlos Santos
author_email = dose.lucky.sake@cloak.id
Expand All @@ -27,5 +27,5 @@ packages = purpleair_data_logger
install_requires =
pg8000==1.31.2
requests
purpleair_api==1.1.4
purpleair_api==1.2.0a1
python_requires = >=3.8

0 comments on commit 650741f

Please # to comment.