Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Helle committed Nov 18, 2023
2 parents 2ee3a12 + f9de893 commit c27cd4b
Show file tree
Hide file tree
Showing 25 changed files with 436 additions and 24 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-for-os.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: build-template

on:
workflow_call:
inputs:
os:
required: true
type: string

jobs:
build:
runs-on: ${{ inputs.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python_version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python_version }}
- name: Install test requirements
run: pip install -r requirements.txt
- name: Install the package
run: python setup.py develop
- name: Run Tests
run: python -m pytest tests/ -v --cov --cov-report=xml --cov-report=term-missing
6 changes: 4 additions & 2 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: linux
on:
push:
paths:
- .github/workflows/build.yml
- src/**/*.py
- tests/**/*.py
- .github/workflows/build-for-os.yml
- .github/workflows/build-linux.yml
workflow_dispatch:
pull_request:
Expand All @@ -14,6 +16,6 @@ on:

jobs:
build:
uses: christianhelle/autofaker/.github/workflows/build.yml@main
uses: ./.github/workflows/build-for-os.yml
with:
os: ubuntu-latest
6 changes: 4 additions & 2 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: mac
on:
push:
paths:
- .github/workflows/build.yml
- src/**/*.py
- tests/**/*.py
- .github/workflows/build-for-os.yml
- .github/workflows/build-macos.yml
workflow_dispatch:
pull_request:
Expand All @@ -14,6 +16,6 @@ on:

jobs:
build:
uses: christianhelle/autofaker/.github/workflows/build.yml@main
uses: ./.github/workflows/build-for-os.yml
with:
os: macos-latest
22 changes: 22 additions & 0 deletions .github/workflows/build-python-310-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: '3.10'

on:
push:
paths:
- src/**/*.py
- tests/**/*.py
- .github/workflows/build.yml
- .github/workflows/build-python-310-linux.yml
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
uses: ./.github/workflows/build.yml
with:
python_version: '3.10'
os: ubuntu-latest
22 changes: 22 additions & 0 deletions .github/workflows/build-python-310-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: '3.10'

on:
push:
paths:
- src/**/*.py
- tests/**/*.py
- .github/workflows/build.yml
- .github/workflows/build-python-310-macos.yml
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
uses: ./.github/workflows/build.yml
with:
python_version: '3.10'
os: macos-latest
22 changes: 22 additions & 0 deletions .github/workflows/build-python-310-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: '3.10'

on:
push:
paths:
- src/**/*.py
- tests/**/*.py
- .github/workflows/build.yml
- .github/workflows/build-python-310-windows.yml
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
uses: ./.github/workflows/build.yml
with:
python_version: '3.10'
os: windows-latest
22 changes: 22 additions & 0 deletions .github/workflows/build-python-311-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 3.11

on:
push:
paths:
- src/**/*.py
- tests/**/*.py
- .github/workflows/build.yml
- .github/workflows/build-python-311-linux.yml
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
uses: ./.github/workflows/build.yml
with:
python_version: 3.11
os: ubuntu-latest
22 changes: 22 additions & 0 deletions .github/workflows/build-python-311-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 3.11

on:
push:
paths:
- src/**/*.py
- tests/**/*.py
- .github/workflows/build.yml
- .github/workflows/build-python-311-macos.yml
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
uses: ./.github/workflows/build.yml
with:
python_version: 3.11
os: macos-latest
22 changes: 22 additions & 0 deletions .github/workflows/build-python-311-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 3.11

on:
push:
paths:
- src/**/*.py
- tests/**/*.py
- .github/workflows/build.yml
- .github/workflows/build-python-311-windows.yml
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
uses: ./.github/workflows/build.yml
with:
python_version: 3.11
os: windows-latest
22 changes: 22 additions & 0 deletions .github/workflows/build-python-37-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 3.7

on:
push:
paths:
- src/**/*.py
- tests/**/*.py
- .github/workflows/build.yml
- .github/workflows/build-python-37-linux.yml
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
uses: ./.github/workflows/build.yml
with:
python_version: 3.7
os: ubuntu-latest
22 changes: 22 additions & 0 deletions .github/workflows/build-python-37-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 3.7

on:
push:
paths:
- src/**/*.py
- tests/**/*.py
- .github/workflows/build.yml
- .github/workflows/build-python-37-macos.yml
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
uses: ./.github/workflows/build.yml
with:
python_version: 3.7
os: macos-latest
22 changes: 22 additions & 0 deletions .github/workflows/build-python-37-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 3.7

on:
push:
paths:
- src/**/*.py
- tests/**/*.py
- .github/workflows/build.yml
- .github/workflows/build-python-37-windows.yml
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
uses: ./.github/workflows/build.yml
with:
python_version: 3.7
os: windows-latest
22 changes: 22 additions & 0 deletions .github/workflows/build-python-38-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 3.8

on:
push:
paths:
- src/**/*.py
- tests/**/*.py
- .github/workflows/build.yml
- .github/workflows/build-python-38-linux.yml
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
uses: ./.github/workflows/build.yml
with:
python_version: 3.8
os: ubuntu-latest
22 changes: 22 additions & 0 deletions .github/workflows/build-python-38-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 3.8

on:
push:
paths:
- src/**/*.py
- tests/**/*.py
- .github/workflows/build.yml
- .github/workflows/build-python-38-macos.yml
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
uses: ./.github/workflows/build.yml
with:
python_version: 3.8
os: macos-latest
22 changes: 22 additions & 0 deletions .github/workflows/build-python-38-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 3.8

on:
push:
paths:
- src/**/*.py
- tests/**/*.py
- .github/workflows/build.yml
- .github/workflows/build-python-38-windows.yml
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
uses: ./.github/workflows/build.yml
with:
python_version: 3.8
os: windows-latest
22 changes: 22 additions & 0 deletions .github/workflows/build-python-39-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 3.9

on:
push:
paths:
- src/**/*.py
- tests/**/*.py
- .github/workflows/build.yml
- .github/workflows/build-python-39-linux.yml
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
uses: ./.github/workflows/build.yml
with:
python_version: 3.9
os: ubuntu-latest
22 changes: 22 additions & 0 deletions .github/workflows/build-python-39-macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 3.9

on:
push:
paths:
- src/**/*.py
- tests/**/*.py
- .github/workflows/build.yml
- .github/workflows/build-python-39-macos.yml
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
uses: ./.github/workflows/build.yml
with:
python_version: 3.9
os: macos-latest
Loading

0 comments on commit c27cd4b

Please sign in to comment.