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

Refactored test CI job #3

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
5 changes: 2 additions & 3 deletions .github/actions/setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ inputs:
runs:
using: composite
steps:
- name: Setup Poetry
run: pipx install poetry
shell: bash
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Setup python ${{ inputs.python-version }}
uses: actions/setup-python@v5
with:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/ci-community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
track-modules:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout contents
uses: actions/checkout@v4
Expand All @@ -38,14 +38,14 @@ jobs:
outputs:
changed_modules: ${{ steps.compute-changes.outputs.computed_modules }}
test:
needs: [track-modules]
needs: track-modules
if: ${{ needs.track-modules.outputs.changed_modules != '[]' }}
strategy:
fail-fast: false
matrix:
python-version: [ "3.11" ]
module: ${{ fromJSON(needs.track-modules.outputs.changed_modules) }}
runs-on: ubuntu-latest
os: [ "ubuntu-22.04", "macos-14" ]
python-version: ["3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout contents
uses: actions/checkout@v4
Expand All @@ -54,6 +54,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: poetry install -E ${{ matrix.module }}
run: poetry install --all-extras
- name: Run tests
run: make modules/${{ matrix.module }}/tests
run: poetry run pytest -v modules
8 changes: 4 additions & 4 deletions .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu ]
python-version: ["3.9", "3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}-latest
os: [ "ubuntu-22.04", "macos-14" ]
python-version: ["3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -27,4 +27,4 @@ jobs:
- name: Run twine check
run: poetry build && poetry run twine check dist/*.tar.gz
- name: Run tests
run: make core/tests
run: poetry run pytest -v core
Loading