Skip to content

Commit

Permalink
Improve build CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudo-rnd-thoughts committed Aug 22, 2024
1 parent 238688a commit 273ed0d
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 14 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https://pre-commit.com
# This GitHub Action assumes that the repo contains a valid .pre-commit-config.yaml file.
name: pre-commit
name: Run Pre-commit
on:
pull_request:
push:
Expand All @@ -15,9 +15,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: python -m pip install pre-commit
- run: python -m pre_commit --version
- run: python -m pre_commit install
- run: python -m pre_commit run --all-files
File renamed without changes.
16 changes: 11 additions & 5 deletions .github/workflows/test-cpp.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test C++ Stable-Retro code
name: Run CTest

on: [pull_request, push]

Expand All @@ -7,14 +7,20 @@ permissions:

jobs:
build:
runs-on: ubuntu-latest # todo, add more OS systems to see if they work as well

name: ${{ matrix.runs_on }}
strategy:
matrix:
include:
- runs-on: ubuntu-latest
- runs-on: mac-12
- runs-on: mac-14

runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.12

- name: Install system packages
run: |
Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test Stable-Retro
name: Run PyTest

on: [pull_request, push]

Expand All @@ -7,11 +7,18 @@ permissions:

jobs:
build:
runs-on: ubuntu-latest # todo, add more OS systems to see if they work as well
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

include:
- runs-on: ubuntu-latest
python: '3.8'
- runs-on: mac-12 # x86_64
python: '3.8'
- runs-on: mac-14 # arm64
python: '3.8'

runs-on: ${{ matrix.runs-on }}
name: ${{ matrix.runs_on }} • py${{ matrix.python }}
steps:
- uses: actions/checkout@v3

Expand All @@ -27,7 +34,7 @@ jobs:
- name: Install pip packages
run: |
python3 -m pip install --upgrade pip pytest
python3 -m pip install -e .
python3 -m pip install .
- name: Run tests
run: |
Expand Down

0 comments on commit 273ed0d

Please sign in to comment.