Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhad6 committed Dec 6, 2023
1 parent ba267bf commit 574b639
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 145 deletions.
2 changes: 0 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ updates:
directory: "/"
schedule:
interval: "monthly"
target-branch: "main"

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "monthly"
target-branch: "main"
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@ on:
- main

env:
POETRY_VERSION: "1.7.0"
POETRY_VERSION: "1.7.1"
MAIN_PYTHON_VERSION: "3.9"
PACKAGE_NAME: "datalogger"

jobs:
ci:
strategy:
matrix:
python_version: ["3.9", "3.10", "3.11"]
python_version: ["3.9", "3.10", "3.11", "3.12"]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Poetry
run: pipx install poetry==${{ env.POETRY_VERSION }}
Expand All @@ -36,15 +37,15 @@ jobs:

- name: Check Formatting (Black)
if: matrix.python_version == env.MAIN_PYTHON_VERSION
run: poetry run black datalogger tests --check
run: poetry run black ${{ env.PACKAGE_NAME }} tests --check

- name: Lint (Flake8)
if: matrix.python_version == env.MAIN_PYTHON_VERSION
run: poetry run flake8 datalogger tests
run: poetry run flake8 ${{ env.PACKAGE_NAME }} tests

- name: Lint (Pylint)
if: matrix.python_version == env.MAIN_PYTHON_VERSION
run: poetry run pylint datalogger tests
run: poetry run pylint ${{ env.PACKAGE_NAME }} tests

- name: Mypy cache
if: matrix.python_version == env.MAIN_PYTHON_VERSION
Expand All @@ -57,7 +58,7 @@ jobs:
- name: Type Check (Mypy)
if: matrix.python_version == env.MAIN_PYTHON_VERSION
run: poetry run mypy datalogger tests
run: poetry run mypy ${{ env.PACKAGE_NAME }} tests

- name: Test (Pytest)
run: poetry run pytest
18 changes: 9 additions & 9 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ name: Deploy to GitHub Pages
on: workflow_dispatch

env:
POETRY_VERSION: "1.7.0"
POETRY_VERSION: "1.7.1"
PYTHON_VERSION: "3.9"
DATALOGGER_VERSION: "0.3.0"
PACKAGE_NAME: "datalogger"
PACKAGE_VERSION: "0.3.0"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Poetry
run: pipx install poetry==${{ env.POETRY_VERSION }}
Expand Down Expand Up @@ -49,11 +49,11 @@ jobs:
echo '<!DOCTYPE html>
<html>
<body>
<a href="${{ env.PACKAGE_NAME }}-${{ env.DATALOGGER_VERSION }}-py3-none-any.whl">
${{ env.PACKAGE_NAME }}-${{ env.DATALOGGER_VERSION }}-py3-none-any.whl
<a href="${{ env.PACKAGE_NAME }}-${{ env.PACKAGE_VERSION }}-py3-none-any.whl">
${{ env.PACKAGE_NAME }}-${{ env.PACKAGE_VERSION }}-py3-none-any.whl
</a>
<a href="${{ env.PACKAGE_NAME }}-${{ env.DATALOGGER_VERSION }}.tar.gz">
${{ env.PACKAGE_NAME }}-${{ env.DATALOGGER_VERSION }}.tar.gz
<a href="${{ env.PACKAGE_NAME }}-${{ env.PACKAGE_VERSION }}.tar.gz">
${{ env.PACKAGE_NAME }}-${{ env.PACKAGE_VERSION }}.tar.gz
</a>
</body>
</html>' > _site/releases/${{ env.PACKAGE_NAME }}/index.html
Expand All @@ -65,7 +65,7 @@ jobs:
run: mv dist/* _site/releases/${{ env.PACKAGE_NAME }}

- name: Upload site artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v2

deploy:
needs: build
Expand All @@ -79,4 +79,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v3
Loading

0 comments on commit 574b639

Please sign in to comment.