From c38e33a9cc512fa523df93650eb02ca3e2c7f033 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 12:32:10 +0200 Subject: [PATCH 01/32] Create build workflows per Python version --- .../workflows/build-for-python-version.yml | 31 +++++++++++++++++++ .github/workflows/build-python-37.yml | 19 ++++++++++++ .github/workflows/build-python-38.yml | 19 ++++++++++++ .github/workflows/build-python-39.yml | 19 ++++++++++++ 4 files changed, 88 insertions(+) create mode 100644 .github/workflows/build-for-python-version.yml create mode 100644 .github/workflows/build-python-37.yml create mode 100644 .github/workflows/build-python-38.yml create mode 100644 .github/workflows/build-python-39.yml diff --git a/.github/workflows/build-for-python-version.yml b/.github/workflows/build-for-python-version.yml new file mode 100644 index 0000000..93f1459 --- /dev/null +++ b/.github/workflows/build-for-python-version.yml @@ -0,0 +1,31 @@ +name: build-template + +on: + workflow_call: + inputs: + python_version: + required: true + type: string + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - windows-latest + - macos-latest + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: ${{ inputs.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 diff --git a/.github/workflows/build-python-37.yml b/.github/workflows/build-python-37.yml new file mode 100644 index 0000000..d8bbd47 --- /dev/null +++ b/.github/workflows/build-python-37.yml @@ -0,0 +1,19 @@ +name: Python 3.7 + +on: + push: + paths: + - .github/workflows/build-for-os.yml + - .github/workflows/build-python-37.yml + workflow_dispatch: + pull_request: + types: + - opened + - synchronize + - reopened + +jobs: + build: + uses: .github/workflows/build-for-python-version.yml + with: + python_version: 3.7 diff --git a/.github/workflows/build-python-38.yml b/.github/workflows/build-python-38.yml new file mode 100644 index 0000000..4526cf6 --- /dev/null +++ b/.github/workflows/build-python-38.yml @@ -0,0 +1,19 @@ +name: Python 3.8 + +on: + push: + paths: + - .github/workflows/build-for-os.yml + - .github/workflows/build-python-37.yml + workflow_dispatch: + pull_request: + types: + - opened + - synchronize + - reopened + +jobs: + build: + uses: .github/workflows/build-for-python-version.yml + with: + python_version: 3.8 diff --git a/.github/workflows/build-python-39.yml b/.github/workflows/build-python-39.yml new file mode 100644 index 0000000..c73768a --- /dev/null +++ b/.github/workflows/build-python-39.yml @@ -0,0 +1,19 @@ +name: Python 3.9 + +on: + push: + paths: + - .github/workflows/build-for-os.yml + - .github/workflows/build-python-37.yml + workflow_dispatch: + pull_request: + types: + - opened + - synchronize + - reopened + +jobs: + build: + uses: .github/workflows/build-for-python-version.yml + with: + python_version: 3.9 From 333f91bffc7afb62e73c3e8c277c7e41fbf9abd5 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 12:41:34 +0200 Subject: [PATCH 02/32] specify branch --- .github/workflows/build-python-37.yml | 2 +- .github/workflows/build-python-38.yml | 2 +- .github/workflows/build-python-39.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-python-37.yml b/.github/workflows/build-python-37.yml index d8bbd47..c39a2ce 100644 --- a/.github/workflows/build-python-37.yml +++ b/.github/workflows/build-python-37.yml @@ -14,6 +14,6 @@ on: jobs: build: - uses: .github/workflows/build-for-python-version.yml + uses: .github/workflows/build-for-python-version.yml@build-badges with: python_version: 3.7 diff --git a/.github/workflows/build-python-38.yml b/.github/workflows/build-python-38.yml index 4526cf6..6a13a80 100644 --- a/.github/workflows/build-python-38.yml +++ b/.github/workflows/build-python-38.yml @@ -14,6 +14,6 @@ on: jobs: build: - uses: .github/workflows/build-for-python-version.yml + uses: .github/workflows/build-for-python-version.yml@build-badges with: python_version: 3.8 diff --git a/.github/workflows/build-python-39.yml b/.github/workflows/build-python-39.yml index c73768a..0b4393c 100644 --- a/.github/workflows/build-python-39.yml +++ b/.github/workflows/build-python-39.yml @@ -14,6 +14,6 @@ on: jobs: build: - uses: .github/workflows/build-for-python-version.yml + uses: .github/workflows/build-for-python-version.yml@build-badges with: python_version: 3.9 From 6223a5086877a9d14fcba103d1154294bc61c108 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 12:44:19 +0200 Subject: [PATCH 03/32] use local repo template --- .github/workflows/build-python-37.yml | 2 +- .github/workflows/build-python-38.yml | 2 +- .github/workflows/build-python-39.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-python-37.yml b/.github/workflows/build-python-37.yml index c39a2ce..4446baf 100644 --- a/.github/workflows/build-python-37.yml +++ b/.github/workflows/build-python-37.yml @@ -14,6 +14,6 @@ on: jobs: build: - uses: .github/workflows/build-for-python-version.yml@build-badges + uses: ./.github/workflows/build-for-python-version.yml with: python_version: 3.7 diff --git a/.github/workflows/build-python-38.yml b/.github/workflows/build-python-38.yml index 6a13a80..1f5de6d 100644 --- a/.github/workflows/build-python-38.yml +++ b/.github/workflows/build-python-38.yml @@ -14,6 +14,6 @@ on: jobs: build: - uses: .github/workflows/build-for-python-version.yml@build-badges + uses: ./.github/workflows/build-for-python-version.yml with: python_version: 3.8 diff --git a/.github/workflows/build-python-39.yml b/.github/workflows/build-python-39.yml index 0b4393c..d7e200d 100644 --- a/.github/workflows/build-python-39.yml +++ b/.github/workflows/build-python-39.yml @@ -14,6 +14,6 @@ on: jobs: build: - uses: .github/workflows/build-for-python-version.yml@build-badges + uses: ./.github/workflows/build-for-python-version.yml with: python_version: 3.9 From 949378bc2751c2bdd34119943b3dcefb033f9acf Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 13:08:56 +0200 Subject: [PATCH 04/32] Create build workflows per os --- .github/workflows/{build.yml => build-for-os.yml} | 0 .github/workflows/build-linux.yml | 4 ++-- .github/workflows/build-macos.yml | 4 ++-- .github/workflows/build-windows.yml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) rename .github/workflows/{build.yml => build-for-os.yml} (100%) diff --git a/.github/workflows/build.yml b/.github/workflows/build-for-os.yml similarity index 100% rename from .github/workflows/build.yml rename to .github/workflows/build-for-os.yml diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 3388826..b3fc2bb 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -3,7 +3,7 @@ name: linux on: push: paths: - - .github/workflows/build.yml + - .github/workflows/build-for-os.yml - .github/workflows/build-linux.yml workflow_dispatch: pull_request: @@ -14,6 +14,6 @@ on: jobs: build: - uses: christianhelle/autofaker/.github/workflows/build.yml@main + uses: ./.github/workflows/build-for-os.yml with: os: ubuntu-latest diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 2319a14..c67bccb 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -3,7 +3,7 @@ name: mac on: push: paths: - - .github/workflows/build.yml + - .github/workflows/build-for-os.yml - .github/workflows/build-macos.yml workflow_dispatch: pull_request: @@ -14,6 +14,6 @@ on: jobs: build: - uses: christianhelle/autofaker/.github/workflows/build.yml@main + uses: ./.github/workflows/build-for-os.yml with: os: macos-latest diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 2a86d00..c70449f 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -3,7 +3,7 @@ name: windows on: push: paths: - - .github/workflows/build.yml + - .github/workflows/build-for-os.yml - .github/workflows/build-windows.yml workflow_dispatch: pull_request: @@ -14,6 +14,6 @@ on: jobs: build: - uses: christianhelle/autofaker/.github/workflows/build.yml@main + uses: ./.github/workflows/build-for-os.yml with: os: windows-latest From 45a16a696ab8ea63c6a08855b078c94e087fd9c0 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 13:16:17 +0200 Subject: [PATCH 05/32] Create build workflows for Python 3.7 on different operating systems --- .github/workflows/build-python-37-linux.yml | 20 ++++++++++++++ .github/workflows/build-python-37-macos.yml | 20 ++++++++++++++ .github/workflows/build-python-37-windows.yml | 20 ++++++++++++++ .github/workflows/build.yml | 27 +++++++++++++++++++ 4 files changed, 87 insertions(+) create mode 100644 .github/workflows/build-python-37-linux.yml create mode 100644 .github/workflows/build-python-37-macos.yml create mode 100644 .github/workflows/build-python-37-windows.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build-python-37-linux.yml b/.github/workflows/build-python-37-linux.yml new file mode 100644 index 0000000..0470a85 --- /dev/null +++ b/.github/workflows/build-python-37-linux.yml @@ -0,0 +1,20 @@ +name: Python 3.7 + +on: + push: + paths: + - .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: linux-latest diff --git a/.github/workflows/build-python-37-macos.yml b/.github/workflows/build-python-37-macos.yml new file mode 100644 index 0000000..2eebf83 --- /dev/null +++ b/.github/workflows/build-python-37-macos.yml @@ -0,0 +1,20 @@ +name: Python 3.7 + +on: + push: + paths: + - .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: macos-latest diff --git a/.github/workflows/build-python-37-windows.yml b/.github/workflows/build-python-37-windows.yml new file mode 100644 index 0000000..51544dc --- /dev/null +++ b/.github/workflows/build-python-37-windows.yml @@ -0,0 +1,20 @@ +name: Python 3.7 + +on: + push: + paths: + - .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 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..7dde916 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: build-template + +on: + workflow_call: + inputs: + os: + required: true + type: string + python_version: + required: true + type: string + +jobs: + build: + runs-on: ${{ inputs.os }} + steps: + - uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: ${{ inputs.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 From 809bc3958256691889544ae8bd0e3584d6d5301f Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 13:18:01 +0200 Subject: [PATCH 06/32] Update names --- .github/workflows/build-python-37-linux.yml | 2 +- .github/workflows/build-python-37-macos.yml | 2 +- .github/workflows/build-python-37-windows.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-python-37-linux.yml b/.github/workflows/build-python-37-linux.yml index 0470a85..73144b1 100644 --- a/.github/workflows/build-python-37-linux.yml +++ b/.github/workflows/build-python-37-linux.yml @@ -1,4 +1,4 @@ -name: Python 3.7 +name: Python 3.7 on Linux on: push: diff --git a/.github/workflows/build-python-37-macos.yml b/.github/workflows/build-python-37-macos.yml index 2eebf83..d15e335 100644 --- a/.github/workflows/build-python-37-macos.yml +++ b/.github/workflows/build-python-37-macos.yml @@ -1,4 +1,4 @@ -name: Python 3.7 +name: Python 3.7 on MacOS on: push: diff --git a/.github/workflows/build-python-37-windows.yml b/.github/workflows/build-python-37-windows.yml index 51544dc..a0f0535 100644 --- a/.github/workflows/build-python-37-windows.yml +++ b/.github/workflows/build-python-37-windows.yml @@ -1,4 +1,4 @@ -name: Python 3.7 +name: Python 3.7 on Windows on: push: From 90d8d4f09538d04501333f93e519689ca12c95a9 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 13:18:11 +0200 Subject: [PATCH 07/32] Create build workflows for Python 3.8 on different operating systems --- .github/workflows/build-python-38-linux.yml | 20 +++++++++++++++++++ .github/workflows/build-python-38-macos.yml | 20 +++++++++++++++++++ .github/workflows/build-python-38-windows.yml | 20 +++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 .github/workflows/build-python-38-linux.yml create mode 100644 .github/workflows/build-python-38-macos.yml create mode 100644 .github/workflows/build-python-38-windows.yml diff --git a/.github/workflows/build-python-38-linux.yml b/.github/workflows/build-python-38-linux.yml new file mode 100644 index 0000000..b0bb37f --- /dev/null +++ b/.github/workflows/build-python-38-linux.yml @@ -0,0 +1,20 @@ +name: Python 3.8 on Linux + +on: + push: + paths: + - .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.8 + os: linux-latest diff --git a/.github/workflows/build-python-38-macos.yml b/.github/workflows/build-python-38-macos.yml new file mode 100644 index 0000000..ab4b442 --- /dev/null +++ b/.github/workflows/build-python-38-macos.yml @@ -0,0 +1,20 @@ +name: Python 3.8 on MacOS + +on: + push: + paths: + - .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.8 + os: macos-latest diff --git a/.github/workflows/build-python-38-windows.yml b/.github/workflows/build-python-38-windows.yml new file mode 100644 index 0000000..0ad443f --- /dev/null +++ b/.github/workflows/build-python-38-windows.yml @@ -0,0 +1,20 @@ +name: Python 3.8 on Windows + +on: + push: + paths: + - .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.8 + os: windows-latest From 800083038df26169a1ef74093e75323690d50b41 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 13:31:47 +0200 Subject: [PATCH 08/32] Create build workflows for Python 3.9 on different operating systems --- .github/workflows/build-python-37-linux.yml | 2 +- .github/workflows/build-python-37-macos.yml | 2 +- .github/workflows/build-python-37-windows.yml | 2 +- .github/workflows/build-python-37.yml | 2 +- .github/workflows/build-python-38-linux.yml | 2 +- .github/workflows/build-python-38-macos.yml | 2 +- .github/workflows/build-python-38-windows.yml | 2 +- .github/workflows/build-python-38.yml | 2 +- .github/workflows/build-python-39-linux.yml | 20 +++++++++++++++++++ .github/workflows/build-python-39-macos.yml | 20 +++++++++++++++++++ .github/workflows/build-python-39-windows.yml | 20 +++++++++++++++++++ .github/workflows/build-python-39.yml | 2 +- 12 files changed, 69 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/build-python-39-linux.yml create mode 100644 .github/workflows/build-python-39-macos.yml create mode 100644 .github/workflows/build-python-39-windows.yml diff --git a/.github/workflows/build-python-37-linux.yml b/.github/workflows/build-python-37-linux.yml index 73144b1..4539f63 100644 --- a/.github/workflows/build-python-37-linux.yml +++ b/.github/workflows/build-python-37-linux.yml @@ -1,4 +1,4 @@ -name: Python 3.7 on Linux +name: python 3.7 on: push: diff --git a/.github/workflows/build-python-37-macos.yml b/.github/workflows/build-python-37-macos.yml index d15e335..e1dfd9e 100644 --- a/.github/workflows/build-python-37-macos.yml +++ b/.github/workflows/build-python-37-macos.yml @@ -1,4 +1,4 @@ -name: Python 3.7 on MacOS +name: python 3.7 on: push: diff --git a/.github/workflows/build-python-37-windows.yml b/.github/workflows/build-python-37-windows.yml index a0f0535..9efee67 100644 --- a/.github/workflows/build-python-37-windows.yml +++ b/.github/workflows/build-python-37-windows.yml @@ -1,4 +1,4 @@ -name: Python 3.7 on Windows +name: python 3.7 on: push: diff --git a/.github/workflows/build-python-37.yml b/.github/workflows/build-python-37.yml index 4446baf..b5c567a 100644 --- a/.github/workflows/build-python-37.yml +++ b/.github/workflows/build-python-37.yml @@ -1,4 +1,4 @@ -name: Python 3.7 +name: python 3.7 on: push: diff --git a/.github/workflows/build-python-38-linux.yml b/.github/workflows/build-python-38-linux.yml index b0bb37f..69b02e6 100644 --- a/.github/workflows/build-python-38-linux.yml +++ b/.github/workflows/build-python-38-linux.yml @@ -1,4 +1,4 @@ -name: Python 3.8 on Linux +name: python 3.8 on: push: diff --git a/.github/workflows/build-python-38-macos.yml b/.github/workflows/build-python-38-macos.yml index ab4b442..368f353 100644 --- a/.github/workflows/build-python-38-macos.yml +++ b/.github/workflows/build-python-38-macos.yml @@ -1,4 +1,4 @@ -name: Python 3.8 on MacOS +name: python 3.8 on: push: diff --git a/.github/workflows/build-python-38-windows.yml b/.github/workflows/build-python-38-windows.yml index 0ad443f..1dce50f 100644 --- a/.github/workflows/build-python-38-windows.yml +++ b/.github/workflows/build-python-38-windows.yml @@ -1,4 +1,4 @@ -name: Python 3.8 on Windows +name: python 3.8 on: push: diff --git a/.github/workflows/build-python-38.yml b/.github/workflows/build-python-38.yml index 1f5de6d..f496a79 100644 --- a/.github/workflows/build-python-38.yml +++ b/.github/workflows/build-python-38.yml @@ -1,4 +1,4 @@ -name: Python 3.8 +name: python 3.8 on: push: diff --git a/.github/workflows/build-python-39-linux.yml b/.github/workflows/build-python-39-linux.yml new file mode 100644 index 0000000..77137ae --- /dev/null +++ b/.github/workflows/build-python-39-linux.yml @@ -0,0 +1,20 @@ +name: python 3.9 + +on: + push: + paths: + - .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.8 + os: linux-latest diff --git a/.github/workflows/build-python-39-macos.yml b/.github/workflows/build-python-39-macos.yml new file mode 100644 index 0000000..b017d00 --- /dev/null +++ b/.github/workflows/build-python-39-macos.yml @@ -0,0 +1,20 @@ +name: python 3.9 + +on: + push: + paths: + - .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.8 + os: macos-latest diff --git a/.github/workflows/build-python-39-windows.yml b/.github/workflows/build-python-39-windows.yml new file mode 100644 index 0000000..1cbc4ea --- /dev/null +++ b/.github/workflows/build-python-39-windows.yml @@ -0,0 +1,20 @@ +name: python 3.9 + +on: + push: + paths: + - .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.8 + os: windows-latest diff --git a/.github/workflows/build-python-39.yml b/.github/workflows/build-python-39.yml index d7e200d..886eee7 100644 --- a/.github/workflows/build-python-39.yml +++ b/.github/workflows/build-python-39.yml @@ -1,4 +1,4 @@ -name: Python 3.9 +name: python 3.9 on: push: From 96892d2f6f8bcbafa2f0e6438100cd282007cbe3 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 13:33:23 +0200 Subject: [PATCH 09/32] Rename workflows --- .github/workflows/build-python-37-linux.yml | 2 +- .github/workflows/build-python-37-macos.yml | 2 +- .github/workflows/build-python-37-windows.yml | 2 +- .github/workflows/build-python-37.yml | 2 +- .github/workflows/build-python-38-linux.yml | 2 +- .github/workflows/build-python-38-macos.yml | 2 +- .github/workflows/build-python-38-windows.yml | 2 +- .github/workflows/build-python-38.yml | 2 +- .github/workflows/build-python-39-linux.yml | 2 +- .github/workflows/build-python-39-macos.yml | 2 +- .github/workflows/build-python-39-windows.yml | 2 +- .github/workflows/build-python-39.yml | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-python-37-linux.yml b/.github/workflows/build-python-37-linux.yml index 4539f63..ac0bf7c 100644 --- a/.github/workflows/build-python-37-linux.yml +++ b/.github/workflows/build-python-37-linux.yml @@ -1,4 +1,4 @@ -name: python 3.7 +name: v3.7 on: push: diff --git a/.github/workflows/build-python-37-macos.yml b/.github/workflows/build-python-37-macos.yml index e1dfd9e..1e12a02 100644 --- a/.github/workflows/build-python-37-macos.yml +++ b/.github/workflows/build-python-37-macos.yml @@ -1,4 +1,4 @@ -name: python 3.7 +name: v3.7 on: push: diff --git a/.github/workflows/build-python-37-windows.yml b/.github/workflows/build-python-37-windows.yml index 9efee67..17dc7a3 100644 --- a/.github/workflows/build-python-37-windows.yml +++ b/.github/workflows/build-python-37-windows.yml @@ -1,4 +1,4 @@ -name: python 3.7 +name: v3.7 on: push: diff --git a/.github/workflows/build-python-37.yml b/.github/workflows/build-python-37.yml index b5c567a..d519d02 100644 --- a/.github/workflows/build-python-37.yml +++ b/.github/workflows/build-python-37.yml @@ -1,4 +1,4 @@ -name: python 3.7 +name: v3.7 on: push: diff --git a/.github/workflows/build-python-38-linux.yml b/.github/workflows/build-python-38-linux.yml index 69b02e6..f01d023 100644 --- a/.github/workflows/build-python-38-linux.yml +++ b/.github/workflows/build-python-38-linux.yml @@ -1,4 +1,4 @@ -name: python 3.8 +name: v3.8 on: push: diff --git a/.github/workflows/build-python-38-macos.yml b/.github/workflows/build-python-38-macos.yml index 368f353..74a05ce 100644 --- a/.github/workflows/build-python-38-macos.yml +++ b/.github/workflows/build-python-38-macos.yml @@ -1,4 +1,4 @@ -name: python 3.8 +name: v3.8 on: push: diff --git a/.github/workflows/build-python-38-windows.yml b/.github/workflows/build-python-38-windows.yml index 1dce50f..23c54f8 100644 --- a/.github/workflows/build-python-38-windows.yml +++ b/.github/workflows/build-python-38-windows.yml @@ -1,4 +1,4 @@ -name: python 3.8 +name: v3.8 on: push: diff --git a/.github/workflows/build-python-38.yml b/.github/workflows/build-python-38.yml index f496a79..e833276 100644 --- a/.github/workflows/build-python-38.yml +++ b/.github/workflows/build-python-38.yml @@ -1,4 +1,4 @@ -name: python 3.8 +name: v3.8 on: push: diff --git a/.github/workflows/build-python-39-linux.yml b/.github/workflows/build-python-39-linux.yml index 77137ae..2d02d63 100644 --- a/.github/workflows/build-python-39-linux.yml +++ b/.github/workflows/build-python-39-linux.yml @@ -1,4 +1,4 @@ -name: python 3.9 +name: v3.9 on: push: diff --git a/.github/workflows/build-python-39-macos.yml b/.github/workflows/build-python-39-macos.yml index b017d00..b028178 100644 --- a/.github/workflows/build-python-39-macos.yml +++ b/.github/workflows/build-python-39-macos.yml @@ -1,4 +1,4 @@ -name: python 3.9 +name: v3.9 on: push: diff --git a/.github/workflows/build-python-39-windows.yml b/.github/workflows/build-python-39-windows.yml index 1cbc4ea..46acb66 100644 --- a/.github/workflows/build-python-39-windows.yml +++ b/.github/workflows/build-python-39-windows.yml @@ -1,4 +1,4 @@ -name: python 3.9 +name: v3.9 on: push: diff --git a/.github/workflows/build-python-39.yml b/.github/workflows/build-python-39.yml index 886eee7..4043ec2 100644 --- a/.github/workflows/build-python-39.yml +++ b/.github/workflows/build-python-39.yml @@ -1,4 +1,4 @@ -name: python 3.9 +name: v3.9 on: push: From 2047130918ad9b5c759e5ed87d67c10c4b54b727 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 13:34:23 +0200 Subject: [PATCH 10/32] Fix version in 3.9 workflows --- .github/workflows/build-python-39-linux.yml | 2 +- .github/workflows/build-python-39-macos.yml | 2 +- .github/workflows/build-python-39-windows.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-python-39-linux.yml b/.github/workflows/build-python-39-linux.yml index 2d02d63..ebf9af0 100644 --- a/.github/workflows/build-python-39-linux.yml +++ b/.github/workflows/build-python-39-linux.yml @@ -16,5 +16,5 @@ jobs: build: uses: ./.github/workflows/build.yml with: - python_version: 3.8 + python_version: 3.9 os: linux-latest diff --git a/.github/workflows/build-python-39-macos.yml b/.github/workflows/build-python-39-macos.yml index b028178..ca2143a 100644 --- a/.github/workflows/build-python-39-macos.yml +++ b/.github/workflows/build-python-39-macos.yml @@ -16,5 +16,5 @@ jobs: build: uses: ./.github/workflows/build.yml with: - python_version: 3.8 + python_version: 3.9 os: macos-latest diff --git a/.github/workflows/build-python-39-windows.yml b/.github/workflows/build-python-39-windows.yml index 46acb66..40cc774 100644 --- a/.github/workflows/build-python-39-windows.yml +++ b/.github/workflows/build-python-39-windows.yml @@ -16,5 +16,5 @@ jobs: build: uses: ./.github/workflows/build.yml with: - python_version: 3.8 + python_version: 3.9 os: windows-latest From 990cde2a8a7e6cbc002c2b96b3415f326c4e0651 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 13:37:47 +0200 Subject: [PATCH 11/32] Create build workflows for Python 3.10 on different operating systems --- .github/workflows/build-python-310-linux.yml | 20 +++++++++++++++++++ .github/workflows/build-python-310-macos.yml | 20 +++++++++++++++++++ .../workflows/build-python-310-windows.yml | 20 +++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 .github/workflows/build-python-310-linux.yml create mode 100644 .github/workflows/build-python-310-macos.yml create mode 100644 .github/workflows/build-python-310-windows.yml diff --git a/.github/workflows/build-python-310-linux.yml b/.github/workflows/build-python-310-linux.yml new file mode 100644 index 0000000..6587de2 --- /dev/null +++ b/.github/workflows/build-python-310-linux.yml @@ -0,0 +1,20 @@ +name: v3.10 + +on: + push: + paths: + - .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.10 + os: linux-latest diff --git a/.github/workflows/build-python-310-macos.yml b/.github/workflows/build-python-310-macos.yml new file mode 100644 index 0000000..3f393bf --- /dev/null +++ b/.github/workflows/build-python-310-macos.yml @@ -0,0 +1,20 @@ +name: v3.10 + +on: + push: + paths: + - .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.10 + os: macos-latest diff --git a/.github/workflows/build-python-310-windows.yml b/.github/workflows/build-python-310-windows.yml new file mode 100644 index 0000000..bd15517 --- /dev/null +++ b/.github/workflows/build-python-310-windows.yml @@ -0,0 +1,20 @@ +name: v3.10 + +on: + push: + paths: + - .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.10 + os: windows-latest From 55a4436827de8862c8955badb52c2c275d35afb6 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 13:37:59 +0200 Subject: [PATCH 12/32] Add build status section to README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index e2ce995..6a207e5 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,16 @@ name: Justin Wise job: Chief Operating Officer ``` +## Build Status + +|Windows|MacOS|Linux| +|---|---|---| +![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-37-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-37-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-37-linux.yml/badge.svg)| +![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-38-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-38-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-38-linux.yml/badge.svg)| +![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-39-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-39-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-39-linux.yml/badge.svg)| +![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-310-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-310-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-310-linux.yml/badge.svg)| +![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-311-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-311-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-311-linux.yml/badge.svg)| + ## Supported data types Currently autofaker supports creating anonymous variables for the following data types: From c5b08c47644a45c6fd9361fba46468d0234d162f Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 13:39:06 +0200 Subject: [PATCH 13/32] Create build workflows for Python 3.11 on different operating systems --- .github/workflows/build-python-311-linux.yml | 20 +++++++++++++++++++ .github/workflows/build-python-311-macos.yml | 20 +++++++++++++++++++ .../workflows/build-python-311-windows.yml | 20 +++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 .github/workflows/build-python-311-linux.yml create mode 100644 .github/workflows/build-python-311-macos.yml create mode 100644 .github/workflows/build-python-311-windows.yml diff --git a/.github/workflows/build-python-311-linux.yml b/.github/workflows/build-python-311-linux.yml new file mode 100644 index 0000000..3d8b4aa --- /dev/null +++ b/.github/workflows/build-python-311-linux.yml @@ -0,0 +1,20 @@ +name: v3.11 + +on: + push: + paths: + - .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.11 + os: linux-latest diff --git a/.github/workflows/build-python-311-macos.yml b/.github/workflows/build-python-311-macos.yml new file mode 100644 index 0000000..2b2c9dc --- /dev/null +++ b/.github/workflows/build-python-311-macos.yml @@ -0,0 +1,20 @@ +name: v3.11 + +on: + push: + paths: + - .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.11 + os: macos-latest diff --git a/.github/workflows/build-python-311-windows.yml b/.github/workflows/build-python-311-windows.yml new file mode 100644 index 0000000..454bf64 --- /dev/null +++ b/.github/workflows/build-python-311-windows.yml @@ -0,0 +1,20 @@ +name: v3.11 + +on: + push: + paths: + - .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.11 + os: windows-latest From 69eb4e9be8e82206a29ce188fb559d1a85076a51 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 13:41:58 +0200 Subject: [PATCH 14/32] Fix triggers --- .github/workflows/build-python-310-linux.yml | 2 +- .github/workflows/build-python-310-macos.yml | 2 +- .github/workflows/build-python-310-windows.yml | 2 +- .github/workflows/build-python-311-linux.yml | 2 +- .github/workflows/build-python-311-macos.yml | 2 +- .github/workflows/build-python-311-windows.yml | 2 +- .github/workflows/build-python-38-linux.yml | 2 +- .github/workflows/build-python-38-macos.yml | 2 +- .github/workflows/build-python-38-windows.yml | 2 +- .github/workflows/build-python-39-linux.yml | 2 +- .github/workflows/build-python-39-macos.yml | 2 +- .github/workflows/build-python-39-windows.yml | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-python-310-linux.yml b/.github/workflows/build-python-310-linux.yml index 6587de2..49c9409 100644 --- a/.github/workflows/build-python-310-linux.yml +++ b/.github/workflows/build-python-310-linux.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-37-windows.yml + - .github/workflows/build-python-310-windows.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-310-macos.yml b/.github/workflows/build-python-310-macos.yml index 3f393bf..2bc6792 100644 --- a/.github/workflows/build-python-310-macos.yml +++ b/.github/workflows/build-python-310-macos.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-37-windows.yml + - .github/workflows/build-python-310-windows.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-310-windows.yml b/.github/workflows/build-python-310-windows.yml index bd15517..347da47 100644 --- a/.github/workflows/build-python-310-windows.yml +++ b/.github/workflows/build-python-310-windows.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-37-windows.yml + - .github/workflows/build-python-310-windows.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-311-linux.yml b/.github/workflows/build-python-311-linux.yml index 3d8b4aa..586487a 100644 --- a/.github/workflows/build-python-311-linux.yml +++ b/.github/workflows/build-python-311-linux.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-37-windows.yml + - .github/workflows/build-python-311-windows.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-311-macos.yml b/.github/workflows/build-python-311-macos.yml index 2b2c9dc..c51bb94 100644 --- a/.github/workflows/build-python-311-macos.yml +++ b/.github/workflows/build-python-311-macos.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-37-windows.yml + - .github/workflows/build-python-311-windows.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-311-windows.yml b/.github/workflows/build-python-311-windows.yml index 454bf64..531c478 100644 --- a/.github/workflows/build-python-311-windows.yml +++ b/.github/workflows/build-python-311-windows.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-37-windows.yml + - .github/workflows/build-python-311-windows.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-38-linux.yml b/.github/workflows/build-python-38-linux.yml index f01d023..c363077 100644 --- a/.github/workflows/build-python-38-linux.yml +++ b/.github/workflows/build-python-38-linux.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-37-windows.yml + - .github/workflows/build-python-38-windows.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-38-macos.yml b/.github/workflows/build-python-38-macos.yml index 74a05ce..e90817d 100644 --- a/.github/workflows/build-python-38-macos.yml +++ b/.github/workflows/build-python-38-macos.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-37-windows.yml + - .github/workflows/build-python-38-windows.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-38-windows.yml b/.github/workflows/build-python-38-windows.yml index 23c54f8..d6d1fab 100644 --- a/.github/workflows/build-python-38-windows.yml +++ b/.github/workflows/build-python-38-windows.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-37-windows.yml + - .github/workflows/build-python-38-windows.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-39-linux.yml b/.github/workflows/build-python-39-linux.yml index ebf9af0..4b1b778 100644 --- a/.github/workflows/build-python-39-linux.yml +++ b/.github/workflows/build-python-39-linux.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-37-windows.yml + - .github/workflows/build-python-39-windows.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-39-macos.yml b/.github/workflows/build-python-39-macos.yml index ca2143a..e9f63fa 100644 --- a/.github/workflows/build-python-39-macos.yml +++ b/.github/workflows/build-python-39-macos.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-37-windows.yml + - .github/workflows/build-python-39-windows.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-39-windows.yml b/.github/workflows/build-python-39-windows.yml index 40cc774..7956ebf 100644 --- a/.github/workflows/build-python-39-windows.yml +++ b/.github/workflows/build-python-39-windows.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-37-windows.yml + - .github/workflows/build-python-39-windows.yml workflow_dispatch: pull_request: types: From ba28dd7896cb4ebc5b2f2f5cd18e175c22a626e1 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 13:45:21 +0200 Subject: [PATCH 15/32] Move build status section to bottom of README --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 6a207e5..11f2c5e 100644 --- a/README.md +++ b/README.md @@ -105,16 +105,6 @@ name: Justin Wise job: Chief Operating Officer ``` -## Build Status - -|Windows|MacOS|Linux| -|---|---|---| -![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-37-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-37-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-37-linux.yml/badge.svg)| -![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-38-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-38-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-38-linux.yml/badge.svg)| -![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-39-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-39-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-39-linux.yml/badge.svg)| -![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-310-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-310-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-310-linux.yml/badge.svg)| -![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-311-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-311-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-311-linux.yml/badge.svg)| - ## Supported data types Currently autofaker supports creating anonymous variables for the following data types: @@ -418,6 +408,16 @@ The code above might output the following 2 Paul 9824 Thomas 960.555.3577x65487 ``` +## Build Status + +|Windows|MacOS|Linux| +|---|---|---| +![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-37-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-37-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-37-linux.yml/badge.svg)| +![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-38-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-38-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-38-linux.yml/badge.svg)| +![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-39-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-39-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-39-linux.yml/badge.svg)| +![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-310-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-310-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-310-linux.yml/badge.svg)| +![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-311-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-311-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-311-linux.yml/badge.svg)| + # For tips and tricks on software development, check out [my blog](https://christianhelle.com) From e5ffeb7031bb5634cc2c9acf93276b016ede315a Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 13:48:43 +0200 Subject: [PATCH 16/32] Remove unused workflows --- .../workflows/build-for-python-version.yml | 31 ------------------- .github/workflows/build-python-37.yml | 19 ------------ .github/workflows/build-python-38.yml | 19 ------------ .github/workflows/build-python-39.yml | 19 ------------ 4 files changed, 88 deletions(-) delete mode 100644 .github/workflows/build-for-python-version.yml delete mode 100644 .github/workflows/build-python-37.yml delete mode 100644 .github/workflows/build-python-38.yml delete mode 100644 .github/workflows/build-python-39.yml diff --git a/.github/workflows/build-for-python-version.yml b/.github/workflows/build-for-python-version.yml deleted file mode 100644 index 93f1459..0000000 --- a/.github/workflows/build-for-python-version.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: build-template - -on: - workflow_call: - inputs: - python_version: - required: true - type: string - -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: - - ubuntu-latest - - windows-latest - - macos-latest - steps: - - uses: actions/checkout@v2 - - name: Setup Python - uses: actions/setup-python@v2 - with: - python-version: ${{ inputs.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 diff --git a/.github/workflows/build-python-37.yml b/.github/workflows/build-python-37.yml deleted file mode 100644 index d519d02..0000000 --- a/.github/workflows/build-python-37.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: v3.7 - -on: - push: - paths: - - .github/workflows/build-for-os.yml - - .github/workflows/build-python-37.yml - workflow_dispatch: - pull_request: - types: - - opened - - synchronize - - reopened - -jobs: - build: - uses: ./.github/workflows/build-for-python-version.yml - with: - python_version: 3.7 diff --git a/.github/workflows/build-python-38.yml b/.github/workflows/build-python-38.yml deleted file mode 100644 index e833276..0000000 --- a/.github/workflows/build-python-38.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: v3.8 - -on: - push: - paths: - - .github/workflows/build-for-os.yml - - .github/workflows/build-python-37.yml - workflow_dispatch: - pull_request: - types: - - opened - - synchronize - - reopened - -jobs: - build: - uses: ./.github/workflows/build-for-python-version.yml - with: - python_version: 3.8 diff --git a/.github/workflows/build-python-39.yml b/.github/workflows/build-python-39.yml deleted file mode 100644 index 4043ec2..0000000 --- a/.github/workflows/build-python-39.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: v3.9 - -on: - push: - paths: - - .github/workflows/build-for-os.yml - - .github/workflows/build-python-37.yml - workflow_dispatch: - pull_request: - types: - - opened - - synchronize - - reopened - -jobs: - build: - uses: ./.github/workflows/build-for-python-version.yml - with: - python_version: 3.9 From 1b9ed00b9f6e843cefe062451023a99615b01fd4 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 13:49:03 +0200 Subject: [PATCH 17/32] Fix triggers --- .github/workflows/build-python-310-linux.yml | 2 +- .github/workflows/build-python-310-macos.yml | 2 +- .github/workflows/build-python-311-linux.yml | 2 +- .github/workflows/build-python-311-macos.yml | 2 +- .github/workflows/build-python-37-linux.yml | 2 +- .github/workflows/build-python-37-macos.yml | 2 +- .github/workflows/build-python-38-linux.yml | 2 +- .github/workflows/build-python-38-macos.yml | 2 +- .github/workflows/build-python-39-linux.yml | 2 +- .github/workflows/build-python-39-macos.yml | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-python-310-linux.yml b/.github/workflows/build-python-310-linux.yml index 49c9409..d450acb 100644 --- a/.github/workflows/build-python-310-linux.yml +++ b/.github/workflows/build-python-310-linux.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-310-windows.yml + - .github/workflows/build-python-310-linux.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-310-macos.yml b/.github/workflows/build-python-310-macos.yml index 2bc6792..40f789a 100644 --- a/.github/workflows/build-python-310-macos.yml +++ b/.github/workflows/build-python-310-macos.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-310-windows.yml + - .github/workflows/build-python-310-macos.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-311-linux.yml b/.github/workflows/build-python-311-linux.yml index 586487a..6211972 100644 --- a/.github/workflows/build-python-311-linux.yml +++ b/.github/workflows/build-python-311-linux.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-311-windows.yml + - .github/workflows/build-python-311-linux.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-311-macos.yml b/.github/workflows/build-python-311-macos.yml index c51bb94..e932517 100644 --- a/.github/workflows/build-python-311-macos.yml +++ b/.github/workflows/build-python-311-macos.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-311-windows.yml + - .github/workflows/build-python-311-macos.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-37-linux.yml b/.github/workflows/build-python-37-linux.yml index ac0bf7c..9f4ccd3 100644 --- a/.github/workflows/build-python-37-linux.yml +++ b/.github/workflows/build-python-37-linux.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-37-windows.yml + - .github/workflows/build-python-37-linux.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-37-macos.yml b/.github/workflows/build-python-37-macos.yml index 1e12a02..0bc1f6b 100644 --- a/.github/workflows/build-python-37-macos.yml +++ b/.github/workflows/build-python-37-macos.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-37-windows.yml + - .github/workflows/build-python-37-macos.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-38-linux.yml b/.github/workflows/build-python-38-linux.yml index c363077..a1d039b 100644 --- a/.github/workflows/build-python-38-linux.yml +++ b/.github/workflows/build-python-38-linux.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-38-windows.yml + - .github/workflows/build-python-38-linux.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-38-macos.yml b/.github/workflows/build-python-38-macos.yml index e90817d..dd75062 100644 --- a/.github/workflows/build-python-38-macos.yml +++ b/.github/workflows/build-python-38-macos.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-38-windows.yml + - .github/workflows/build-python-38-macos.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-39-linux.yml b/.github/workflows/build-python-39-linux.yml index 4b1b778..5488929 100644 --- a/.github/workflows/build-python-39-linux.yml +++ b/.github/workflows/build-python-39-linux.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-39-windows.yml + - .github/workflows/build-python-39-linux.yml workflow_dispatch: pull_request: types: diff --git a/.github/workflows/build-python-39-macos.yml b/.github/workflows/build-python-39-macos.yml index e9f63fa..36490ba 100644 --- a/.github/workflows/build-python-39-macos.yml +++ b/.github/workflows/build-python-39-macos.yml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/build.yml - - .github/workflows/build-python-39-windows.yml + - .github/workflows/build-python-39-macos.yml workflow_dispatch: pull_request: types: From fbc75f1f74542077e9b64f57b2f9267e7e09fb11 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 13:57:55 +0200 Subject: [PATCH 18/32] Parameter as string --- .github/workflows/build-python-310-linux.yml | 2 +- .github/workflows/build-python-310-macos.yml | 2 +- .github/workflows/build-python-310-windows.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-python-310-linux.yml b/.github/workflows/build-python-310-linux.yml index d450acb..3943af9 100644 --- a/.github/workflows/build-python-310-linux.yml +++ b/.github/workflows/build-python-310-linux.yml @@ -16,5 +16,5 @@ jobs: build: uses: ./.github/workflows/build.yml with: - python_version: 3.10 + python_version: '3.10' os: linux-latest diff --git a/.github/workflows/build-python-310-macos.yml b/.github/workflows/build-python-310-macos.yml index 40f789a..d36ebd0 100644 --- a/.github/workflows/build-python-310-macos.yml +++ b/.github/workflows/build-python-310-macos.yml @@ -16,5 +16,5 @@ jobs: build: uses: ./.github/workflows/build.yml with: - python_version: 3.10 + python_version: '3.10' os: macos-latest diff --git a/.github/workflows/build-python-310-windows.yml b/.github/workflows/build-python-310-windows.yml index 347da47..4710973 100644 --- a/.github/workflows/build-python-310-windows.yml +++ b/.github/workflows/build-python-310-windows.yml @@ -16,5 +16,5 @@ jobs: build: uses: ./.github/workflows/build.yml with: - python_version: 3.10 + python_version: '3.10' os: windows-latest From b8e57db784d6cfd64389db80f0b9bb7b7e9a4daa Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 14:08:12 +0200 Subject: [PATCH 19/32] Rename workflows --- .github/workflows/build-python-310-linux.yml | 2 +- .github/workflows/build-python-310-macos.yml | 2 +- .github/workflows/build-python-310-windows.yml | 2 +- .github/workflows/build-python-311-linux.yml | 2 +- .github/workflows/build-python-311-macos.yml | 2 +- .github/workflows/build-python-311-windows.yml | 2 +- .github/workflows/build-python-37-linux.yml | 2 +- .github/workflows/build-python-37-macos.yml | 2 +- .github/workflows/build-python-37-windows.yml | 2 +- .github/workflows/build-python-38-linux.yml | 2 +- .github/workflows/build-python-38-macos.yml | 2 +- .github/workflows/build-python-38-windows.yml | 2 +- .github/workflows/build-python-39-linux.yml | 2 +- .github/workflows/build-python-39-macos.yml | 2 +- .github/workflows/build-python-39-windows.yml | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-python-310-linux.yml b/.github/workflows/build-python-310-linux.yml index 3943af9..9ba670c 100644 --- a/.github/workflows/build-python-310-linux.yml +++ b/.github/workflows/build-python-310-linux.yml @@ -1,4 +1,4 @@ -name: v3.10 +name: linux v3.10 on: push: diff --git a/.github/workflows/build-python-310-macos.yml b/.github/workflows/build-python-310-macos.yml index d36ebd0..4047c44 100644 --- a/.github/workflows/build-python-310-macos.yml +++ b/.github/workflows/build-python-310-macos.yml @@ -1,4 +1,4 @@ -name: v3.10 +name: mac v3.10 on: push: diff --git a/.github/workflows/build-python-310-windows.yml b/.github/workflows/build-python-310-windows.yml index 4710973..e1537f6 100644 --- a/.github/workflows/build-python-310-windows.yml +++ b/.github/workflows/build-python-310-windows.yml @@ -1,4 +1,4 @@ -name: v3.10 +name: windows v3.10 on: push: diff --git a/.github/workflows/build-python-311-linux.yml b/.github/workflows/build-python-311-linux.yml index 6211972..4d23ed4 100644 --- a/.github/workflows/build-python-311-linux.yml +++ b/.github/workflows/build-python-311-linux.yml @@ -1,4 +1,4 @@ -name: v3.11 +name: linux v3.11 on: push: diff --git a/.github/workflows/build-python-311-macos.yml b/.github/workflows/build-python-311-macos.yml index e932517..55c97c6 100644 --- a/.github/workflows/build-python-311-macos.yml +++ b/.github/workflows/build-python-311-macos.yml @@ -1,4 +1,4 @@ -name: v3.11 +name: mac v3.11 on: push: diff --git a/.github/workflows/build-python-311-windows.yml b/.github/workflows/build-python-311-windows.yml index 531c478..8a551bd 100644 --- a/.github/workflows/build-python-311-windows.yml +++ b/.github/workflows/build-python-311-windows.yml @@ -1,4 +1,4 @@ -name: v3.11 +name: windows v3.11 on: push: diff --git a/.github/workflows/build-python-37-linux.yml b/.github/workflows/build-python-37-linux.yml index 9f4ccd3..86ac16a 100644 --- a/.github/workflows/build-python-37-linux.yml +++ b/.github/workflows/build-python-37-linux.yml @@ -1,4 +1,4 @@ -name: v3.7 +name: linux v3.7 on: push: diff --git a/.github/workflows/build-python-37-macos.yml b/.github/workflows/build-python-37-macos.yml index 0bc1f6b..2507557 100644 --- a/.github/workflows/build-python-37-macos.yml +++ b/.github/workflows/build-python-37-macos.yml @@ -1,4 +1,4 @@ -name: v3.7 +name: mac v3.7 on: push: diff --git a/.github/workflows/build-python-37-windows.yml b/.github/workflows/build-python-37-windows.yml index 17dc7a3..cdcba3d 100644 --- a/.github/workflows/build-python-37-windows.yml +++ b/.github/workflows/build-python-37-windows.yml @@ -1,4 +1,4 @@ -name: v3.7 +name: windows v3.7 on: push: diff --git a/.github/workflows/build-python-38-linux.yml b/.github/workflows/build-python-38-linux.yml index a1d039b..923ce2e 100644 --- a/.github/workflows/build-python-38-linux.yml +++ b/.github/workflows/build-python-38-linux.yml @@ -1,4 +1,4 @@ -name: v3.8 +name: linux v3.8 on: push: diff --git a/.github/workflows/build-python-38-macos.yml b/.github/workflows/build-python-38-macos.yml index dd75062..8bf1ad2 100644 --- a/.github/workflows/build-python-38-macos.yml +++ b/.github/workflows/build-python-38-macos.yml @@ -1,4 +1,4 @@ -name: v3.8 +name: mac v3.8 on: push: diff --git a/.github/workflows/build-python-38-windows.yml b/.github/workflows/build-python-38-windows.yml index d6d1fab..14e1340 100644 --- a/.github/workflows/build-python-38-windows.yml +++ b/.github/workflows/build-python-38-windows.yml @@ -1,4 +1,4 @@ -name: v3.8 +name: windows v3.8 on: push: diff --git a/.github/workflows/build-python-39-linux.yml b/.github/workflows/build-python-39-linux.yml index 5488929..04d3a78 100644 --- a/.github/workflows/build-python-39-linux.yml +++ b/.github/workflows/build-python-39-linux.yml @@ -1,4 +1,4 @@ -name: v3.9 +name: linux v3.9 on: push: diff --git a/.github/workflows/build-python-39-macos.yml b/.github/workflows/build-python-39-macos.yml index 36490ba..a71c012 100644 --- a/.github/workflows/build-python-39-macos.yml +++ b/.github/workflows/build-python-39-macos.yml @@ -1,4 +1,4 @@ -name: v3.9 +name: mac v3.9 on: push: diff --git a/.github/workflows/build-python-39-windows.yml b/.github/workflows/build-python-39-windows.yml index 7956ebf..f3f4142 100644 --- a/.github/workflows/build-python-39-windows.yml +++ b/.github/workflows/build-python-39-windows.yml @@ -1,4 +1,4 @@ -name: v3.9 +name: windows v3.9 on: push: From c3efc97caa8e5be1433fafeab5acfcc2e17955e5 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 14:20:24 +0200 Subject: [PATCH 20/32] Rename workflows --- .github/workflows/build-python-310-linux.yml | 2 +- .github/workflows/build-python-310-macos.yml | 2 +- .github/workflows/build-python-310-windows.yml | 2 +- .github/workflows/build-python-311-linux.yml | 2 +- .github/workflows/build-python-311-macos.yml | 2 +- .github/workflows/build-python-311-windows.yml | 2 +- .github/workflows/build-python-37-linux.yml | 2 +- .github/workflows/build-python-37-macos.yml | 2 +- .github/workflows/build-python-37-windows.yml | 2 +- .github/workflows/build-python-38-linux.yml | 2 +- .github/workflows/build-python-38-macos.yml | 2 +- .github/workflows/build-python-38-windows.yml | 2 +- .github/workflows/build-python-39-linux.yml | 2 +- .github/workflows/build-python-39-macos.yml | 2 +- .github/workflows/build-python-39-windows.yml | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-python-310-linux.yml b/.github/workflows/build-python-310-linux.yml index 9ba670c..e37bc22 100644 --- a/.github/workflows/build-python-310-linux.yml +++ b/.github/workflows/build-python-310-linux.yml @@ -1,4 +1,4 @@ -name: linux v3.10 +name: python v3.10 on: push: diff --git a/.github/workflows/build-python-310-macos.yml b/.github/workflows/build-python-310-macos.yml index 4047c44..b39abd6 100644 --- a/.github/workflows/build-python-310-macos.yml +++ b/.github/workflows/build-python-310-macos.yml @@ -1,4 +1,4 @@ -name: mac v3.10 +name: python v3.10 on: push: diff --git a/.github/workflows/build-python-310-windows.yml b/.github/workflows/build-python-310-windows.yml index e1537f6..db7f784 100644 --- a/.github/workflows/build-python-310-windows.yml +++ b/.github/workflows/build-python-310-windows.yml @@ -1,4 +1,4 @@ -name: windows v3.10 +name: python v3.10 on: push: diff --git a/.github/workflows/build-python-311-linux.yml b/.github/workflows/build-python-311-linux.yml index 4d23ed4..7f25029 100644 --- a/.github/workflows/build-python-311-linux.yml +++ b/.github/workflows/build-python-311-linux.yml @@ -1,4 +1,4 @@ -name: linux v3.11 +name: python v3.11 on: push: diff --git a/.github/workflows/build-python-311-macos.yml b/.github/workflows/build-python-311-macos.yml index 55c97c6..eb92cbf 100644 --- a/.github/workflows/build-python-311-macos.yml +++ b/.github/workflows/build-python-311-macos.yml @@ -1,4 +1,4 @@ -name: mac v3.11 +name: python v3.11 on: push: diff --git a/.github/workflows/build-python-311-windows.yml b/.github/workflows/build-python-311-windows.yml index 8a551bd..5f140d4 100644 --- a/.github/workflows/build-python-311-windows.yml +++ b/.github/workflows/build-python-311-windows.yml @@ -1,4 +1,4 @@ -name: windows v3.11 +name: python v3.11 on: push: diff --git a/.github/workflows/build-python-37-linux.yml b/.github/workflows/build-python-37-linux.yml index 86ac16a..18a1806 100644 --- a/.github/workflows/build-python-37-linux.yml +++ b/.github/workflows/build-python-37-linux.yml @@ -1,4 +1,4 @@ -name: linux v3.7 +name: python v3.7 on: push: diff --git a/.github/workflows/build-python-37-macos.yml b/.github/workflows/build-python-37-macos.yml index 2507557..4dae801 100644 --- a/.github/workflows/build-python-37-macos.yml +++ b/.github/workflows/build-python-37-macos.yml @@ -1,4 +1,4 @@ -name: mac v3.7 +name: python v3.7 on: push: diff --git a/.github/workflows/build-python-37-windows.yml b/.github/workflows/build-python-37-windows.yml index cdcba3d..e659957 100644 --- a/.github/workflows/build-python-37-windows.yml +++ b/.github/workflows/build-python-37-windows.yml @@ -1,4 +1,4 @@ -name: windows v3.7 +name: python v3.7 on: push: diff --git a/.github/workflows/build-python-38-linux.yml b/.github/workflows/build-python-38-linux.yml index 923ce2e..468e985 100644 --- a/.github/workflows/build-python-38-linux.yml +++ b/.github/workflows/build-python-38-linux.yml @@ -1,4 +1,4 @@ -name: linux v3.8 +name: python v3.8 on: push: diff --git a/.github/workflows/build-python-38-macos.yml b/.github/workflows/build-python-38-macos.yml index 8bf1ad2..ff9cd81 100644 --- a/.github/workflows/build-python-38-macos.yml +++ b/.github/workflows/build-python-38-macos.yml @@ -1,4 +1,4 @@ -name: mac v3.8 +name: python v3.8 on: push: diff --git a/.github/workflows/build-python-38-windows.yml b/.github/workflows/build-python-38-windows.yml index 14e1340..c68e295 100644 --- a/.github/workflows/build-python-38-windows.yml +++ b/.github/workflows/build-python-38-windows.yml @@ -1,4 +1,4 @@ -name: windows v3.8 +name: python v3.8 on: push: diff --git a/.github/workflows/build-python-39-linux.yml b/.github/workflows/build-python-39-linux.yml index 04d3a78..8a104f9 100644 --- a/.github/workflows/build-python-39-linux.yml +++ b/.github/workflows/build-python-39-linux.yml @@ -1,4 +1,4 @@ -name: linux v3.9 +name: python v3.9 on: push: diff --git a/.github/workflows/build-python-39-macos.yml b/.github/workflows/build-python-39-macos.yml index a71c012..fc0bd4a 100644 --- a/.github/workflows/build-python-39-macos.yml +++ b/.github/workflows/build-python-39-macos.yml @@ -1,4 +1,4 @@ -name: mac v3.9 +name: python v3.9 on: push: diff --git a/.github/workflows/build-python-39-windows.yml b/.github/workflows/build-python-39-windows.yml index f3f4142..b159c9c 100644 --- a/.github/workflows/build-python-39-windows.yml +++ b/.github/workflows/build-python-39-windows.yml @@ -1,4 +1,4 @@ -name: windows v3.9 +name: python v3.9 on: push: From 0ffab3fb3d7f4827c8a79c4be6f7a6baa4bd34e6 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 14:22:50 +0200 Subject: [PATCH 21/32] Rename workflows --- .github/workflows/build-python-310-linux.yml | 2 +- .github/workflows/build-python-310-macos.yml | 2 +- .github/workflows/build-python-310-windows.yml | 2 +- .github/workflows/build-python-311-linux.yml | 2 +- .github/workflows/build-python-311-macos.yml | 2 +- .github/workflows/build-python-311-windows.yml | 2 +- .github/workflows/build-python-37-linux.yml | 2 +- .github/workflows/build-python-37-macos.yml | 2 +- .github/workflows/build-python-37-windows.yml | 2 +- .github/workflows/build-python-38-linux.yml | 2 +- .github/workflows/build-python-38-macos.yml | 2 +- .github/workflows/build-python-38-windows.yml | 2 +- .github/workflows/build-python-39-linux.yml | 2 +- .github/workflows/build-python-39-macos.yml | 2 +- .github/workflows/build-python-39-windows.yml | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-python-310-linux.yml b/.github/workflows/build-python-310-linux.yml index e37bc22..7620cfb 100644 --- a/.github/workflows/build-python-310-linux.yml +++ b/.github/workflows/build-python-310-linux.yml @@ -1,4 +1,4 @@ -name: python v3.10 +name: 3.10 on: push: diff --git a/.github/workflows/build-python-310-macos.yml b/.github/workflows/build-python-310-macos.yml index b39abd6..88e33e0 100644 --- a/.github/workflows/build-python-310-macos.yml +++ b/.github/workflows/build-python-310-macos.yml @@ -1,4 +1,4 @@ -name: python v3.10 +name: 3.10 on: push: diff --git a/.github/workflows/build-python-310-windows.yml b/.github/workflows/build-python-310-windows.yml index db7f784..05c6bf4 100644 --- a/.github/workflows/build-python-310-windows.yml +++ b/.github/workflows/build-python-310-windows.yml @@ -1,4 +1,4 @@ -name: python v3.10 +name: 3.10 on: push: diff --git a/.github/workflows/build-python-311-linux.yml b/.github/workflows/build-python-311-linux.yml index 7f25029..1a81ab6 100644 --- a/.github/workflows/build-python-311-linux.yml +++ b/.github/workflows/build-python-311-linux.yml @@ -1,4 +1,4 @@ -name: python v3.11 +name: 3.11 on: push: diff --git a/.github/workflows/build-python-311-macos.yml b/.github/workflows/build-python-311-macos.yml index eb92cbf..08be83a 100644 --- a/.github/workflows/build-python-311-macos.yml +++ b/.github/workflows/build-python-311-macos.yml @@ -1,4 +1,4 @@ -name: python v3.11 +name: 3.11 on: push: diff --git a/.github/workflows/build-python-311-windows.yml b/.github/workflows/build-python-311-windows.yml index 5f140d4..2a023e3 100644 --- a/.github/workflows/build-python-311-windows.yml +++ b/.github/workflows/build-python-311-windows.yml @@ -1,4 +1,4 @@ -name: python v3.11 +name: 3.11 on: push: diff --git a/.github/workflows/build-python-37-linux.yml b/.github/workflows/build-python-37-linux.yml index 18a1806..6d3ee90 100644 --- a/.github/workflows/build-python-37-linux.yml +++ b/.github/workflows/build-python-37-linux.yml @@ -1,4 +1,4 @@ -name: python v3.7 +name: 3.7 on: push: diff --git a/.github/workflows/build-python-37-macos.yml b/.github/workflows/build-python-37-macos.yml index 4dae801..824c2d8 100644 --- a/.github/workflows/build-python-37-macos.yml +++ b/.github/workflows/build-python-37-macos.yml @@ -1,4 +1,4 @@ -name: python v3.7 +name: 3.7 on: push: diff --git a/.github/workflows/build-python-37-windows.yml b/.github/workflows/build-python-37-windows.yml index e659957..2bee76c 100644 --- a/.github/workflows/build-python-37-windows.yml +++ b/.github/workflows/build-python-37-windows.yml @@ -1,4 +1,4 @@ -name: python v3.7 +name: 3.7 on: push: diff --git a/.github/workflows/build-python-38-linux.yml b/.github/workflows/build-python-38-linux.yml index 468e985..5f4de28 100644 --- a/.github/workflows/build-python-38-linux.yml +++ b/.github/workflows/build-python-38-linux.yml @@ -1,4 +1,4 @@ -name: python v3.8 +name: 3.8 on: push: diff --git a/.github/workflows/build-python-38-macos.yml b/.github/workflows/build-python-38-macos.yml index ff9cd81..60f4c01 100644 --- a/.github/workflows/build-python-38-macos.yml +++ b/.github/workflows/build-python-38-macos.yml @@ -1,4 +1,4 @@ -name: python v3.8 +name: 3.8 on: push: diff --git a/.github/workflows/build-python-38-windows.yml b/.github/workflows/build-python-38-windows.yml index c68e295..54cb2c1 100644 --- a/.github/workflows/build-python-38-windows.yml +++ b/.github/workflows/build-python-38-windows.yml @@ -1,4 +1,4 @@ -name: python v3.8 +name: 3.8 on: push: diff --git a/.github/workflows/build-python-39-linux.yml b/.github/workflows/build-python-39-linux.yml index 8a104f9..7276d5c 100644 --- a/.github/workflows/build-python-39-linux.yml +++ b/.github/workflows/build-python-39-linux.yml @@ -1,4 +1,4 @@ -name: python v3.9 +name: 3.9 on: push: diff --git a/.github/workflows/build-python-39-macos.yml b/.github/workflows/build-python-39-macos.yml index fc0bd4a..65529eb 100644 --- a/.github/workflows/build-python-39-macos.yml +++ b/.github/workflows/build-python-39-macos.yml @@ -1,4 +1,4 @@ -name: python v3.9 +name: 3.9 on: push: diff --git a/.github/workflows/build-python-39-windows.yml b/.github/workflows/build-python-39-windows.yml index b159c9c..6535a69 100644 --- a/.github/workflows/build-python-39-windows.yml +++ b/.github/workflows/build-python-39-windows.yml @@ -1,4 +1,4 @@ -name: python v3.9 +name: 3.9 on: push: From 69d1c56498b2bdd6f88e6b27f32fd1fac620edf0 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 14:25:20 +0200 Subject: [PATCH 22/32] Move build status section README --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 11f2c5e..9dea7a5 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,16 @@ name: Justin Wise job: Chief Operating Officer ``` +## Supported OS and Python versions + +|Windows|MacOS|Linux| +|---|---|---| +![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-37-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-37-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-37-linux.yml/badge.svg)| +![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-38-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-38-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-38-linux.yml/badge.svg)| +![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-39-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-39-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-39-linux.yml/badge.svg)| +![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-310-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-310-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-310-linux.yml/badge.svg)| +![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-311-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-311-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-311-linux.yml/badge.svg)| + ## Supported data types Currently autofaker supports creating anonymous variables for the following data types: @@ -408,16 +418,6 @@ The code above might output the following 2 Paul 9824 Thomas 960.555.3577x65487 ``` -## Build Status - -|Windows|MacOS|Linux| -|---|---|---| -![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-37-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-37-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-37-linux.yml/badge.svg)| -![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-38-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-38-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-38-linux.yml/badge.svg)| -![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-39-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-39-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-39-linux.yml/badge.svg)| -![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-310-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-310-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-310-linux.yml/badge.svg)| -![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-311-windows.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-311-macos.yml/badge.svg)|![](https://github.com/christianhelle/autofaker/actions/workflows/build-python-311-linux.yml/badge.svg)| - # For tips and tricks on software development, check out [my blog](https://christianhelle.com) From 3242c7263899b193379e01cf4066b48808e679bd Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 15:55:49 +0200 Subject: [PATCH 23/32] Fix OS name --- .github/workflows/build-python-310-linux.yml | 2 +- .github/workflows/build-python-311-linux.yml | 2 +- .github/workflows/build-python-37-linux.yml | 2 +- .github/workflows/build-python-38-linux.yml | 2 +- .github/workflows/build-python-39-linux.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-python-310-linux.yml b/.github/workflows/build-python-310-linux.yml index 7620cfb..db6228c 100644 --- a/.github/workflows/build-python-310-linux.yml +++ b/.github/workflows/build-python-310-linux.yml @@ -17,4 +17,4 @@ jobs: uses: ./.github/workflows/build.yml with: python_version: '3.10' - os: linux-latest + os: ubuntu-latest diff --git a/.github/workflows/build-python-311-linux.yml b/.github/workflows/build-python-311-linux.yml index 1a81ab6..bb97ea9 100644 --- a/.github/workflows/build-python-311-linux.yml +++ b/.github/workflows/build-python-311-linux.yml @@ -17,4 +17,4 @@ jobs: uses: ./.github/workflows/build.yml with: python_version: 3.11 - os: linux-latest + os: ubuntu-latest diff --git a/.github/workflows/build-python-37-linux.yml b/.github/workflows/build-python-37-linux.yml index 6d3ee90..9abda4f 100644 --- a/.github/workflows/build-python-37-linux.yml +++ b/.github/workflows/build-python-37-linux.yml @@ -17,4 +17,4 @@ jobs: uses: ./.github/workflows/build.yml with: python_version: 3.7 - os: linux-latest + os: ubuntu-latest diff --git a/.github/workflows/build-python-38-linux.yml b/.github/workflows/build-python-38-linux.yml index 5f4de28..c4463f2 100644 --- a/.github/workflows/build-python-38-linux.yml +++ b/.github/workflows/build-python-38-linux.yml @@ -17,4 +17,4 @@ jobs: uses: ./.github/workflows/build.yml with: python_version: 3.8 - os: linux-latest + os: ubuntu-latest diff --git a/.github/workflows/build-python-39-linux.yml b/.github/workflows/build-python-39-linux.yml index 7276d5c..c338f13 100644 --- a/.github/workflows/build-python-39-linux.yml +++ b/.github/workflows/build-python-39-linux.yml @@ -17,4 +17,4 @@ jobs: uses: ./.github/workflows/build.yml with: python_version: 3.9 - os: linux-latest + os: ubuntu-latest From 36b3d6024bf1f61a562ccfc2af93eb64c7b371f9 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 15:57:12 +0200 Subject: [PATCH 24/32] Add timeouts --- .github/workflows/build-for-os.yml | 1 + .github/workflows/build.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/build-for-os.yml b/.github/workflows/build-for-os.yml index 07f00cd..e360946 100644 --- a/.github/workflows/build-for-os.yml +++ b/.github/workflows/build-for-os.yml @@ -10,6 +10,7 @@ on: jobs: build: runs-on: ${{ inputs.os }} + timeout-minutes: 20 strategy: fail-fast: false matrix: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7dde916..dd6cfc3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,6 +13,7 @@ on: jobs: build: runs-on: ${{ inputs.os }} + timeout-minutes: 10 steps: - uses: actions/checkout@v2 - name: Setup Python From 254e7b15de0d7cfe0f7c9e83f543ddb3cca3ba77 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 11 Aug 2023 16:02:36 +0200 Subject: [PATCH 25/32] Trigger builds on .py file changes --- .github/workflows/build-linux.yml | 2 ++ .github/workflows/build-macos.yml | 2 ++ .github/workflows/build-python-310-linux.yml | 2 ++ .github/workflows/build-python-310-macos.yml | 2 ++ .github/workflows/build-python-310-windows.yml | 2 ++ .github/workflows/build-python-311-linux.yml | 2 ++ .github/workflows/build-python-311-macos.yml | 2 ++ .github/workflows/build-python-311-windows.yml | 2 ++ .github/workflows/build-python-37-linux.yml | 2 ++ .github/workflows/build-python-37-macos.yml | 2 ++ .github/workflows/build-python-37-windows.yml | 2 ++ .github/workflows/build-python-38-linux.yml | 2 ++ .github/workflows/build-python-38-macos.yml | 2 ++ .github/workflows/build-python-38-windows.yml | 2 ++ .github/workflows/build-python-39-linux.yml | 2 ++ .github/workflows/build-python-39-macos.yml | 2 ++ .github/workflows/build-python-39-windows.yml | 2 ++ .github/workflows/build-windows.yml | 2 ++ 18 files changed, 36 insertions(+) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index b3fc2bb..afd40cb 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -3,6 +3,8 @@ name: linux on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build-for-os.yml - .github/workflows/build-linux.yml workflow_dispatch: diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index c67bccb..5fd87fe 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -3,6 +3,8 @@ name: mac on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build-for-os.yml - .github/workflows/build-macos.yml workflow_dispatch: diff --git a/.github/workflows/build-python-310-linux.yml b/.github/workflows/build-python-310-linux.yml index db6228c..e7abb11 100644 --- a/.github/workflows/build-python-310-linux.yml +++ b/.github/workflows/build-python-310-linux.yml @@ -3,6 +3,8 @@ name: 3.10 on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build.yml - .github/workflows/build-python-310-linux.yml workflow_dispatch: diff --git a/.github/workflows/build-python-310-macos.yml b/.github/workflows/build-python-310-macos.yml index 88e33e0..da92179 100644 --- a/.github/workflows/build-python-310-macos.yml +++ b/.github/workflows/build-python-310-macos.yml @@ -3,6 +3,8 @@ name: 3.10 on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build.yml - .github/workflows/build-python-310-macos.yml workflow_dispatch: diff --git a/.github/workflows/build-python-310-windows.yml b/.github/workflows/build-python-310-windows.yml index 05c6bf4..37a89a6 100644 --- a/.github/workflows/build-python-310-windows.yml +++ b/.github/workflows/build-python-310-windows.yml @@ -3,6 +3,8 @@ name: 3.10 on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build.yml - .github/workflows/build-python-310-windows.yml workflow_dispatch: diff --git a/.github/workflows/build-python-311-linux.yml b/.github/workflows/build-python-311-linux.yml index bb97ea9..5b88bd7 100644 --- a/.github/workflows/build-python-311-linux.yml +++ b/.github/workflows/build-python-311-linux.yml @@ -3,6 +3,8 @@ name: 3.11 on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build.yml - .github/workflows/build-python-311-linux.yml workflow_dispatch: diff --git a/.github/workflows/build-python-311-macos.yml b/.github/workflows/build-python-311-macos.yml index 08be83a..a79351d 100644 --- a/.github/workflows/build-python-311-macos.yml +++ b/.github/workflows/build-python-311-macos.yml @@ -3,6 +3,8 @@ name: 3.11 on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build.yml - .github/workflows/build-python-311-macos.yml workflow_dispatch: diff --git a/.github/workflows/build-python-311-windows.yml b/.github/workflows/build-python-311-windows.yml index 2a023e3..ec33b06 100644 --- a/.github/workflows/build-python-311-windows.yml +++ b/.github/workflows/build-python-311-windows.yml @@ -3,6 +3,8 @@ name: 3.11 on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build.yml - .github/workflows/build-python-311-windows.yml workflow_dispatch: diff --git a/.github/workflows/build-python-37-linux.yml b/.github/workflows/build-python-37-linux.yml index 9abda4f..287b46d 100644 --- a/.github/workflows/build-python-37-linux.yml +++ b/.github/workflows/build-python-37-linux.yml @@ -3,6 +3,8 @@ name: 3.7 on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build.yml - .github/workflows/build-python-37-linux.yml workflow_dispatch: diff --git a/.github/workflows/build-python-37-macos.yml b/.github/workflows/build-python-37-macos.yml index 824c2d8..b2a2671 100644 --- a/.github/workflows/build-python-37-macos.yml +++ b/.github/workflows/build-python-37-macos.yml @@ -3,6 +3,8 @@ name: 3.7 on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build.yml - .github/workflows/build-python-37-macos.yml workflow_dispatch: diff --git a/.github/workflows/build-python-37-windows.yml b/.github/workflows/build-python-37-windows.yml index 2bee76c..8555924 100644 --- a/.github/workflows/build-python-37-windows.yml +++ b/.github/workflows/build-python-37-windows.yml @@ -3,6 +3,8 @@ name: 3.7 on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build.yml - .github/workflows/build-python-37-windows.yml workflow_dispatch: diff --git a/.github/workflows/build-python-38-linux.yml b/.github/workflows/build-python-38-linux.yml index c4463f2..4f8786c 100644 --- a/.github/workflows/build-python-38-linux.yml +++ b/.github/workflows/build-python-38-linux.yml @@ -3,6 +3,8 @@ name: 3.8 on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build.yml - .github/workflows/build-python-38-linux.yml workflow_dispatch: diff --git a/.github/workflows/build-python-38-macos.yml b/.github/workflows/build-python-38-macos.yml index 60f4c01..e9b014f 100644 --- a/.github/workflows/build-python-38-macos.yml +++ b/.github/workflows/build-python-38-macos.yml @@ -3,6 +3,8 @@ name: 3.8 on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build.yml - .github/workflows/build-python-38-macos.yml workflow_dispatch: diff --git a/.github/workflows/build-python-38-windows.yml b/.github/workflows/build-python-38-windows.yml index 54cb2c1..cfa5bf0 100644 --- a/.github/workflows/build-python-38-windows.yml +++ b/.github/workflows/build-python-38-windows.yml @@ -3,6 +3,8 @@ name: 3.8 on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build.yml - .github/workflows/build-python-38-windows.yml workflow_dispatch: diff --git a/.github/workflows/build-python-39-linux.yml b/.github/workflows/build-python-39-linux.yml index c338f13..4dff017 100644 --- a/.github/workflows/build-python-39-linux.yml +++ b/.github/workflows/build-python-39-linux.yml @@ -3,6 +3,8 @@ name: 3.9 on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build.yml - .github/workflows/build-python-39-linux.yml workflow_dispatch: diff --git a/.github/workflows/build-python-39-macos.yml b/.github/workflows/build-python-39-macos.yml index 65529eb..48aa14d 100644 --- a/.github/workflows/build-python-39-macos.yml +++ b/.github/workflows/build-python-39-macos.yml @@ -3,6 +3,8 @@ name: 3.9 on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build.yml - .github/workflows/build-python-39-macos.yml workflow_dispatch: diff --git a/.github/workflows/build-python-39-windows.yml b/.github/workflows/build-python-39-windows.yml index 6535a69..e510620 100644 --- a/.github/workflows/build-python-39-windows.yml +++ b/.github/workflows/build-python-39-windows.yml @@ -3,6 +3,8 @@ name: 3.9 on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build.yml - .github/workflows/build-python-39-windows.yml workflow_dispatch: diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index c70449f..7ddaeee 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -3,6 +3,8 @@ name: windows on: push: paths: + - src/**/*.py + - tests/**/*.py - .github/workflows/build-for-os.yml - .github/workflows/build-windows.yml workflow_dispatch: From 95b4e0ee9510923e6145de8b6d8b2d1316b40dcd Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Fri, 25 Aug 2023 14:32:38 +0200 Subject: [PATCH 26/32] Update name --- .github/workflows/build-python-310-linux.yml | 2 +- .github/workflows/build-python-310-macos.yml | 2 +- .github/workflows/build-python-310-windows.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-python-310-linux.yml b/.github/workflows/build-python-310-linux.yml index e7abb11..ab54f14 100644 --- a/.github/workflows/build-python-310-linux.yml +++ b/.github/workflows/build-python-310-linux.yml @@ -1,4 +1,4 @@ -name: 3.10 +name: '3.10' on: push: diff --git a/.github/workflows/build-python-310-macos.yml b/.github/workflows/build-python-310-macos.yml index da92179..ee97748 100644 --- a/.github/workflows/build-python-310-macos.yml +++ b/.github/workflows/build-python-310-macos.yml @@ -1,4 +1,4 @@ -name: 3.10 +name: '3.10' on: push: diff --git a/.github/workflows/build-python-310-windows.yml b/.github/workflows/build-python-310-windows.yml index 37a89a6..247e8a2 100644 --- a/.github/workflows/build-python-310-windows.yml +++ b/.github/workflows/build-python-310-windows.yml @@ -1,4 +1,4 @@ -name: 3.10 +name: '3.10' on: push: From 3814730725326395b07a704a90802f3b0049544f Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Sun, 29 Oct 2023 13:20:59 +0100 Subject: [PATCH 27/32] Add Qodana GitHub Actions workflow Added a new file `qodana.yml` to the `.github/workflows` directory that contains a new GitHub Actions workflow for Qodana. This was done to automate code quality checks and apply fixes for every push event to the main branch as well as on pull requests. The Qodana scan runs on Ubuntu latest and enables auto-fixing of detected issues. --- .github/workflows/qodana.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/qodana.yml diff --git a/.github/workflows/qodana.yml b/.github/workflows/qodana.yml new file mode 100644 index 0000000..39dba38 --- /dev/null +++ b/.github/workflows/qodana.yml @@ -0,0 +1,30 @@ +name: Qodana +on: + workflow_dispatch: + pull_request: + push: + branches: + - main + +jobs: + qodana: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + checks: write + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit + fetch-depth: 0 # a full history is required for pull request analysis + - name: 'Qodana Scan' + uses: JetBrains/qodana-action@v2023.2 + continue-on-error: true + with: + args: --apply-fixes + push-fixes: pull-request + pr-mode: false + env: + QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From a1a970149f17118b9067484b3c3b36ebe62b350b Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Sun, 29 Oct 2023 15:11:50 +0100 Subject: [PATCH 28/32] Add qodana config file --- qodana.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 qodana.yml diff --git a/qodana.yml b/qodana.yml new file mode 100644 index 0000000..6c68f02 --- /dev/null +++ b/qodana.yml @@ -0,0 +1,2 @@ +version: "1.0" +fixesStrategy: apply From eb62751fd9326a37c463fe02463d31ed5cdb7a87 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Sun, 29 Oct 2023 15:31:35 +0100 Subject: [PATCH 29/32] Specify python linter for Qodana --- qodana.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/qodana.yml b/qodana.yml index 6c68f02..ea37733 100644 --- a/qodana.yml +++ b/qodana.yml @@ -1,2 +1,3 @@ version: "1.0" +linter: jetbrains/qodana-python:2023.2 fixesStrategy: apply From aafa50d49283709eaa6cb4b3b74b073e8306cfd6 Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Sat, 18 Nov 2023 10:56:26 +0100 Subject: [PATCH 30/32] fix: ValueError: mutable default for field x is not allowed: use default_factory --- src/autofaker/generator.py | 11 +++++------ tests/test_create_anonymous_data_classes.py | 4 ++++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/autofaker/generator.py b/src/autofaker/generator.py index 399d6ef..cb0bb5e 100644 --- a/src/autofaker/generator.py +++ b/src/autofaker/generator.py @@ -69,15 +69,14 @@ def __init__(self, cls, use_fake_data: bool = False): self.cls = cls def generate(self): - args = [] fields = dataclasses.fields(self.cls) - for field in fields: + params = {} + for dataclass_field in fields: generator = TypeDataGenerator.create( - field.type, field.name, use_fake_data=self.use_fake_data + dataclass_field.type, dataclass_field.name, use_fake_data=self.use_fake_data ) - args.append((field.name, field.type, generator.generate())) - name = self.cls.__module__ + "." + self.cls.__qualname__ - instance = dataclasses.make_dataclass(name, args) + params[dataclass_field.name] = generator.generate() + instance = self.cls(**params) return instance diff --git a/tests/test_create_anonymous_data_classes.py b/tests/test_create_anonymous_data_classes.py index f6133e7..fedb90e 100644 --- a/tests/test_create_anonymous_data_classes.py +++ b/tests/test_create_anonymous_data_classes.py @@ -9,6 +9,8 @@ class DataClass: id: int text: str + list_of_str: list[str] + list_of_int: list[int] class AnonymousDataClassTestCase(unittest.TestCase): @@ -28,6 +30,8 @@ def test_create_many_data_class_returns_dataclass(self): data = Autodata.create(DataClass) self.assertNotEqual(0, data.id) self.assertNotEqual("", data.text) + self.assertNotEqual("", data.list_of_str[0]) + self.assertNotEqual(0, data.list_of_int[0]) @dataclass From 932ee6ddc43e689dae78ada7cd3f26131830bedf Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Sat, 18 Nov 2023 15:55:39 +0100 Subject: [PATCH 31/32] fix: compatibility with python3.7 --- tests/test_create_anonymous_data_classes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_create_anonymous_data_classes.py b/tests/test_create_anonymous_data_classes.py index fedb90e..5421fae 100644 --- a/tests/test_create_anonymous_data_classes.py +++ b/tests/test_create_anonymous_data_classes.py @@ -1,6 +1,7 @@ import dataclasses import unittest from dataclasses import dataclass +from typing import List from autofaker import Autodata @@ -9,8 +10,8 @@ class DataClass: id: int text: str - list_of_str: list[str] - list_of_int: list[int] + list_of_str: List[str] + list_of_int: List[int] class AnonymousDataClassTestCase(unittest.TestCase): From d06a0e0652209485bb928ca3164f1ee7d21f19ba Mon Sep 17 00:00:00 2001 From: qodana-bot Date: Sat, 18 Nov 2023 15:04:03 +0000 Subject: [PATCH 32/32] =?UTF-8?q?=F0=9F=A4=96=20Apply=20quick-fixes=20by?= =?UTF-8?q?=20Qodana?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/autofaker/generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/autofaker/generator.py b/src/autofaker/generator.py index cb0bb5e..5ce4f97 100644 --- a/src/autofaker/generator.py +++ b/src/autofaker/generator.py @@ -22,7 +22,7 @@ def create( ) if is_date_type(type_name): return TypeDataGenerator.create_datetime( - type_name, field_name, use_fake_data + type_name ) if type_name == "list": return ListGenerator(t) @@ -35,7 +35,7 @@ def create( ) @staticmethod - def create_datetime(type_name, field_name: str = None, use_fake_data: bool = False): + def create_datetime(type_name): if type_name == "datetime": return DatetimeGenerator() if type_name == "date":