Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to GH Actions #28

Merged
merged 4 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and test [Python 3.7, 3.8, 3.9]
name: Build and test [Python 3.9, 3.10, 3.11]

on: [push, pull_request]

Expand All @@ -7,11 +7,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: [3.9, "3.10", "3.11"]

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@master
with:
persist-credentials: false

Expand All @@ -35,8 +35,9 @@ jobs:
run: |
pytest -m 'not full_run and not regression' --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check_black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@master
- uses: psf/black@stable
with:
options: "--line-length 79 --check --verbose"
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
uses: actions/checkout@master
with:
persist-credentials: false

Expand All @@ -18,14 +18,12 @@ jobs:
with:
activate-environment: iot-dev
environment-file: environment.yml
python-version: 3.8
python-version: 3.11
auto-activate-base: false

- name: Build # Build Jupyter Book
shell: bash -l {0}
run: |
pip install jupyter-book
pip install sphinxcontrib-bibtex==2.2.0
pip install -e .
cd docs
jb build ./book
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/docs_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
uses: actions/checkout@master
with:
persist-credentials: false

Expand All @@ -15,14 +15,12 @@ jobs:
with:
activate-environment: iot-dev
environment-file: environment.yml
python-version: 3.8
python-version: 3.11
auto-activate-base: false

- name: Build # Build Jupyter Book
shell: bash -l {0}
run: |
pip install jupyter-book
pip install sphinxcontrib-bibtex==2.2.0
pip install -e .
cd docs
jb build ./book
5 changes: 4 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ dependencies:
- jupyter-book>=0.9.1
- black
- plotly-express
- kaleido
- kaleido
- typing_extensions
- jupyter-book
- sphinxcontrib-bibtex
Loading