Skip to content

Commit

Permalink
test for Python code
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Jun 9, 2024
1 parent 3fd0370 commit 6558818
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions actions/dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ on:
description: 'Python version'
type: string
required: false
default: '3.10'
default: '3.11'

runs:
using: "composite"
steps:

- uses: cvxgrp/.github/actions/setup-environment@main
with:
python-version: "${{ inputs.python-version || '3.10' }}"
python-version: "${{ inputs.python-version || '3.11' }}"

- name: Export dependencies
shell: bash
Expand Down
6 changes: 3 additions & 3 deletions actions/deptry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
description: 'Python version'
type: string
required: false
default: '3.10'
default: '3.11'
source-folder:
description: 'Source folder'
type: string
Expand All @@ -34,15 +34,15 @@ runs:
steps:
- uses: cvxgrp/.github/actions/setup-environment@main
with:
python-version: ${{ inputs.python-version || '3.10' }}
python-version: ${{ inputs.python-version || '3.11' }}

- name: Install deptry
shell: bash
run: |
poetry run pip install --no-cache-dir \
deptry
- name: Run tests
- name: Run deptry
shell: bash
run : |
poetry run deptry ${{ inputs.source-folder || 'cvx' }}
4 changes: 2 additions & 2 deletions actions/release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ on:
description: 'Python version'
type: string
required: false
default: '3.10'
default: '3.11'

runs:
using: "composite"

steps:
- uses: cvxgrp/.github/actions/setup-environment@main
with:
python-version: "${{ inputs.python-version || '3.10' }}"
python-version: "${{ inputs.python-version || '3.11' }}"

- name: Change version in pyproject.toml
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions actions/setup-environment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ on:
description: 'Python version'
type: string
required: false
default: '3.10'
default: '3.11'

runs:
using: "composite"
Expand Down Expand Up @@ -65,7 +65,7 @@ runs:
poetry show --only main --tree > artifacts/build/show.txt
- name: Archive Documentation
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@4
with:
name: build
path: artifacts/build
Expand Down

0 comments on commit 6558818

Please sign in to comment.