Skip to content

Commit

Permalink
Merge pull request #28 from jdebacker/codecov
Browse files Browse the repository at this point in the history
Updates to GH Actions
  • Loading branch information
jdebacker authored May 15, 2024
2 parents 10985c1 + 7e28a89 commit 76d675f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
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

0 comments on commit 76d675f

Please sign in to comment.