Skip to content

Commit

Permalink
try with basic setup
Browse files Browse the repository at this point in the history
  • Loading branch information
haarcuba committed Feb 21, 2025
1 parent 4f63efd commit 219597e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 10 deletions.
21 changes: 21 additions & 0 deletions .github/actions/basic_setup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: BasicSetup
description: basic setup
inputs:
python_version:
description: 'Python version'
type: string
required: false
default: '3.12'


runs:
using: composite
steps:
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python_version }}
- uses: Gr1N/setup-poetry@v8
- name: Install Project
run: poetry install
shell: bash
18 changes: 8 additions & 10 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ on:
pull_request:
jobs:
Unit-Tests:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: check out our code
uses: actions/checkout@v3
- name: install poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: install testix
run: poetry install
- uses: actions/checkout@v3
- name: basic setup
uses: ./.github/actions/basic_setup
- run: poetry install
- name: unit tests
run: poetry run rake units
Run-Examples:
Expand All @@ -25,7 +23,7 @@ jobs:
- name: examples
run: poetry run rake examples
Generate-Wheel:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: check out our code
uses: actions/checkout@v3
Expand All @@ -41,7 +39,7 @@ jobs:
Python-Version-Compatibility:
needs:
- Generate-Wheel
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
python_version:
Expand Down Expand Up @@ -69,7 +67,7 @@ jobs:
- name: test import testix
run: python side/tools/full_testix_importer.py
All-OK:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs:
- Generate-Wheel
- Unit-Tests
Expand Down

0 comments on commit 219597e

Please sign in to comment.