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

✨ Python 3.12 #310

Merged
merged 3 commits into from
Jan 6, 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
8 changes: 0 additions & 8 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,18 @@ updates:
directory: /
schedule:
interval: monthly
labels:
- dependencies
- package-ecosystem: pip
directory: /.github/workflows
schedule:
interval: monthly
labels:
- dependencies
- package-ecosystem: pip
directory: /docs
schedule:
interval: monthly
labels:
- dependencies
- package-ecosystem: pip
directory: /
schedule:
interval: monthly
versioning-strategy: lockfile-only
allow:
- dependency-type: all
labels:
- dependencies
17 changes: 8 additions & 9 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Github Workspace
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.11"
- name: Install Hatch
run: |
python -m pip install --upgrade pip
python -m pip install -q hatch
hatch env create
python -m pip install -q --upgrade pip wheel
python -m pip install -q hatch pre-commit
hatch --version
- name: Declare Version Variable
run: |
Expand All @@ -41,7 +40,7 @@ jobs:
echo PACKAGE_NAME=${PACKAGE_NAME} >> $GITHUB_ENV
- name: Docker Image Building and Publishing
id: docker_build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
push: false
tags: juftin/${{ env.PACKAGE_NAME }}:latest
21 changes: 10 additions & 11 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Github Workspace
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python Environment 3.10
uses: actions/setup-python@v4
- name: Set up Python Environment
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.11"
- name: Install Hatch
run: |
python -m pip install --upgrade pip
python -m pip install -q hatch
hatch env create
python -m pip install --upgrade pip wheel
python -m pip install -q hatch pre-commit
hatch --version
- name: Lint
id: lint
continue-on-error: true
run: |
echo "::add-matcher::.github/matchers/flake8.json"
hatch run lint
echo "::add-matcher::.github/workflows/matchers/flake8.json"
hatch run lint:style
echo "::remove-matcher owner=flake8::"
- name: Code Checker
id: check
continue-on-error: true
run: |
echo "::add-matcher::.github/matchers/mypy.json"
hatch run check
echo "::add-matcher::.github/workflows/matchers/mypy.json"
hatch run lint:typing
echo "::remove-matcher owner=mypy::"
- name: Raise Errors For Linting Failures
if: |
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 13 additions & 15 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.11"
- name: Install Hatch
run: |
python -m pip install --upgrade pip
python -m pip install -q hatch
hatch env create
python -m pip install -q hatch pre-commit
hatch --version
- name: Build package
run: |
hatch build
- name: Publish package on PyPI
uses: pypa/[email protected].6
uses: pypa/[email protected].11
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
Expand All @@ -41,23 +40,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.11"
- name: Install Hatch
run: |
python -m pip install --upgrade pip
python -m pip install -q hatch
hatch env create
python -m pip install -q --upgrade pip wheel
python -m pip install -q hatch pre-commit
hatch --version
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
Expand All @@ -71,7 +69,7 @@ jobs:
echo PACKAGE_NAME=${PACKAGE_NAME} >> $GITHUB_ENV
- name: Docker Image Building and Publishing
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
push: true
tags: juftin/${{ env.PACKAGE_NAME }}:latest,juftin/${{ env.PACKAGE_NAME }}:${{ env.PACKAGE_VERSION }}
37 changes: 22 additions & 15 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,30 @@ jobs:
name: Release
if: github.repository_owner == 'juftin'
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check out the repository
uses: actions/checkout@v4
with:
fetch-depth: 2
ref: main
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.11"
- name: Install Hatch
run: |
python -m pip install --upgrade pip
python -m pip install -q hatch
hatch env create
python -m pip install -q hatch pre-commit
hatch -v env create
hatch --version
- name: Release
run: hatch run semantic-release
run: hatch run gen:release
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
GIT_AUTHOR_NAME: github-actions[bot]
Expand All @@ -41,23 +48,23 @@ jobs:
contents: write
steps:
- name: Checkout Latest Changes
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Set up Python Environment
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.11"
- name: Install Hatch
run: |
python -m pip install --upgrade pip
python -m pip install -q hatch
hatch env create
python -m pip install --upgrade pip wheel
python -m pip install -q hatch pre-commit
hatch env create docs
hatch --version
- name: Set Up GitHub Actions User
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Deploy Documentation Changes
run: hatch run docs-deploy --force
run: hatch run docs:gh-deploy --force
13 changes: 7 additions & 6 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
fail-fast: true
matrix:
include:
- { name: Python 3.12, python: "3.12" }
- { name: Python 3.11, python: "3.11" }
- { name: Python 3.10, python: "3.10" }
- { name: Python 3.9, python: "3.9" }
Expand All @@ -35,20 +36,20 @@ jobs:
CAMPLY_LOG_HANDLER: PYTHON
steps:
- name: Set up Github Workspace
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python Environment ${{ matrix.python }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install Hatch
run: |
python -m pip install --upgrade pip
python -m pip install -q hatch
python -m pip install -q --upgrade pip wheel
python -m pip install -q hatch pre-commit
hatch --version
- name: Test Suite
run: |
echo "::add-matcher::.github/matchers/python.json"
hatch run +py="${{ matrix.python }}" test:matrix
echo "::add-matcher::.github/workflows/matchers/python.json"
hatch run +py=${{ matrix.python }} all:cov
echo "::remove-matcher owner=python::"
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
exclude: mkdocs.yml
- id: check-ast
- id: check-docstring-first
- id: check-merge-conflict
Expand Down Expand Up @@ -42,13 +43,13 @@ repos:
- id: format
name: format
description: Runs Code Auto-Formatters
entry: hatch run format
entry: hatch run lint:fmt
language: system
pass_filenames: false
- id: lint
name: lint
description: Runs Code Linters
entry: hatch run format
entry: hatch run lint:style
language: system
pass_filenames: false
require_serial: false
61 changes: 0 additions & 61 deletions .releaserc.js

This file was deleted.

Loading
Loading