summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorcapellancitizen <thecapellancitizen@gmail.com>2024-08-13 11:27:33 -0400
committerGitHub <noreply@github.com>2024-08-13 11:27:33 -0400
commit02cce8024d0e91036266cae310ed8d24f9c64d17 (patch)
tree43fbf8ba134570f4f017c3f5026e3ab7561e621d /.github/workflows
parente8896fe18e3f052f6ae4c7a7a62ac3f40ec7c091 (diff)
CI: Added pytest, some speed improvements (#3135)
Geos build is now cached, and its tests are no longer built.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml53
1 files changed, 33 insertions, 20 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 8639c0cd..f664d594 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -16,12 +16,6 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.9.x'
- - uses: actions/setup-node@v4
- with:
- node-version: 20
- - uses: ruby/setup-ruby@v1
- with:
- ruby-version: 3.1
- uses: actions/cache@v4
id: pip-cache
with:
@@ -29,6 +23,13 @@ jobs:
key: ${{ runner.os }}-20.04-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-20.04-pip-
+ - uses: actions/cache@v4
+ id: geos-build-cache
+ with:
+ path: geos/build
+ key: ${{ runner.os }}-20.04-geos-build-${{ hashFiles('bin/build-linux') }}
+ restore-keys: |
+ ${{ runner.os }}-20.04-geos-build-
- name: install dependencies
shell: bash
@@ -88,13 +89,17 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- - uses: actions/setup-node@v4
- with:
- node-version: 20
- uses: actions/setup-python@v5
with:
python-version: '3.8.x'
architecture: 'x86'
+ - uses: actions/cache@v4
+ id: geos-build-cache
+ with:
+ path: geos
+ key: win32-geos-build-${{ hashFiles('bin/geos-win.cmd') }}
+ restore-keys: |
+ win32-geos-build-
- uses: microsoft/setup-msbuild@v2
- name: Setup Git for Windows SDK
uses: git-for-windows/setup-git-for-windows-sdk@v1.10.0
@@ -127,6 +132,9 @@ jobs:
bin\build-geos-win.cmd
- shell: bash
run: |
+ pytest
+ - shell: bash
+ run: |
make dist
env:
BUILD: windows
@@ -154,13 +162,17 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- - uses: actions/setup-node@v4
- with:
- node-version: 20
- uses: actions/setup-python@v5
with:
python-version: '3.8.x'
architecture: 'x64'
+ - uses: actions/cache@v4
+ id: geos-build-cache
+ with:
+ path: geos
+ key: win64-geos-build-${{ hashFiles('bin/geos-win.cmd') }}
+ restore-keys: |
+ win64-geos-build-
- uses: microsoft/setup-msbuild@v2
- name: Setup Git for Windows SDK
uses: git-for-windows/setup-git-for-windows-sdk@v1.10.0
@@ -187,6 +199,9 @@ jobs:
bin\build-geos-win.cmd
- shell: bash
run: |
+ pytest
+ - shell: bash
+ run: |
make dist
env:
BUILD: windows
@@ -217,9 +232,6 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.9.x'
- - uses: actions/setup-node@v4
- with:
- node-version: 20
- name: install dependencies
shell: bash
run: |
@@ -254,6 +266,9 @@ jobs:
echo "${{ env.pythonLocation }}/bin" >> $GITHUB_PATH
- shell: bash
run: |
+ pytest
+ - shell: bash
+ run: |
make dist
env:
BUILD: osx
@@ -265,7 +280,6 @@ jobs:
NOTARY_ACCOUNT: ${{ secrets.INKSTITCH_NOTARIZE_AC }}
NOTARY_PASSWORD: ${{ secrets.INKSTITCH_NOTARIZE_PASS }}
-
- uses: actions/upload-artifact@v4
with:
name: inkstitch-mac-x86
@@ -279,9 +293,6 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.9.x'
- - uses: actions/setup-node@v4
- with:
- node-version: 20
- name: install dependencies
shell: bash
run: |
@@ -316,6 +327,9 @@ jobs:
echo "${{ env.pythonLocation }}/bin" >> $GITHUB_PATH
- shell: bash
run: |
+ pytest
+ - shell: bash
+ run: |
make dist
env:
BUILD: osx
@@ -327,7 +341,6 @@ jobs:
NOTARY_ACCOUNT: ${{ secrets.INKSTITCH_NOTARIZE_AC }}
NOTARY_PASSWORD: ${{ secrets.INKSTITCH_NOTARIZE_PASS }}
-
- uses: actions/upload-artifact@v4
with:
name: inkstitch-mac-arm64