Skip to content

Commit

Permalink
Merge pull request #6 from raspersc2/fix/support-python312
Browse files Browse the repository at this point in the history
fix: update libraries to support python 3.12
  • Loading branch information
raspersc2 authored Dec 1, 2024
2 parents fe3ad86 + 878ef3d commit 1223b23
Show file tree
Hide file tree
Showing 6 changed files with 1,516 additions and 1,252 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ 3.11 ]
python-version: [ 3.12 ]

steps:
# check-out repo
Expand All @@ -24,7 +24,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pipx install poetry==1.6.1
pipx install poetry==1.8.4
poetry install --with dev
# run linters
- name: Run linters
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/orchestrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ on:
- master

jobs:
call-testing-pipeline:
name: Testing
uses: ./.github/workflows/tests.yml
# call-testing-pipeline:
# name: Testing
# uses: ./.github/workflows/tests.yml
call-linting-pipeline:
name: Linting
uses: ./.github/workflows/lint.yml
call-release-pipeline:
name: Release
needs:
- call-testing-pipeline
# - call-testing-pipeline
- call-linting-pipeline
uses: ./.github/workflows/release.yml
secrets: inherit
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
ref: ${{ github.head_ref }}
# install poetry
- name: Install poetry
run: pipx install poetry==1.6.1
run: pipx install poetry==1.8.4
# set-up python with cache
- name: Setup Python 3.11
- name: Setup Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
cache: 'poetry'
# install requirements
- name: Install requirements
Expand Down
76 changes: 38 additions & 38 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
name: RunTests

on:
push:
branches: [ develop ]
pull_request:
branches: [ master, develop ]
workflow_call:


jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: [3.11]

steps:
- uses: actions/checkout@v2
- name: Set up ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pipx install poetry
poetry install --with dev
- name: Test with pytest + Coverage
run: |
poetry run pytest --html=html/${{ matrix.os }}-test-results-${{ matrix.python-version }}.html
- name: Upload pytest test results
uses: actions/upload-artifact@v2
with:
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
path: html/${{ matrix.os }}-test-results-${{ matrix.python-version }}.html
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
#name: RunTests
#
#on:
# push:
# branches: [ develop ]
# pull_request:
# branches: [ master, develop ]
# workflow_call:
#
#
#jobs:
# build:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
# python-version: [3.12]
#
# steps:
# - uses: actions/checkout@v2
# - name: Set up ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# pipx install poetry
# poetry install --with dev
# - name: Test with pytest + Coverage
# run: |
# poetry run pytest --html=html/${{ matrix.os }}-test-results-${{ matrix.python-version }}.html
# - name: Upload pytest test results
# uses: actions/upload-artifact@v4
# with:
# name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
# path: html/${{ matrix.os }}-test-results-${{ matrix.python-version }}.html
# # Use always() to always run this step to publish test results when there are test failures
# if: ${{ always() }}
Loading

0 comments on commit 1223b23

Please sign in to comment.