summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-30 16:53:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-01-30 16:53:22 +0000
commitce6763317433ca8509f45bd1d471fb4ad2eeffdd (patch)
treea648ad7d54a5d3ffaa8519e7c73ea27541105c9b /.github
parentReleasing debian version 2.21.0-1. (diff)
downloadpre-commit-ce6763317433ca8509f45bd1d471fb4ad2eeffdd.tar.xz
pre-commit-ce6763317433ca8509f45bd1d471fb4ad2eeffdd.zip
Merging upstream version 3.0.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github')
-rw-r--r--.github/actions/pre-test/action.yml40
-rw-r--r--.github/workflows/main.yml23
2 files changed, 63 insertions, 0 deletions
diff --git a/.github/actions/pre-test/action.yml b/.github/actions/pre-test/action.yml
new file mode 100644
index 0000000..608c0cd
--- /dev/null
+++ b/.github/actions/pre-test/action.yml
@@ -0,0 +1,40 @@
+inputs:
+ env:
+ default: ${{ matrix.env }}
+
+runs:
+ using: composite
+ steps:
+ - name: setup (windows)
+ shell: bash
+ if: runner.os == 'Windows'
+ run: |
+ set -x
+
+ echo 'TEMP=C:\TEMP' >> "$GITHUB_ENV"
+
+ echo "$CONDA\Scripts" >> "$GITHUB_PATH"
+
+ echo 'C:\Strawberry\perl\bin' >> "$GITHUB_PATH"
+ echo 'C:\Strawberry\perl\site\bin' >> "$GITHUB_PATH"
+ echo 'C:\Strawberry\c\bin' >> "$GITHUB_PATH"
+
+ testing/get-coursier.sh
+ testing/get-dart.sh
+ - name: setup (linux)
+ shell: bash
+ if: runner.os == 'Linux'
+ run: |
+ set -x
+
+ sudo apt-get update
+ sudo apt-get install -y --no-install-recommends \
+ lua5.3 \
+ liblua5.3-dev \
+ luarocks
+
+ testing/get-coursier.sh
+ testing/get-dart.sh
+ testing/get-swift.sh
+ - uses: asottile/workflows/.github/actions/latest-git@v1.2.0
+ if: inputs.env == 'py38' && runner.os == 'Linux'
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000..c78d105
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,23 @@
+name: main
+
+on:
+ push:
+ branches: [main, test-me-*]
+ tags:
+ pull_request:
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
+jobs:
+ main-windows:
+ uses: asottile/workflows/.github/workflows/tox.yml@v1.2.0
+ with:
+ env: '["py38"]'
+ os: windows-latest
+ main-linux:
+ uses: asottile/workflows/.github/workflows/tox.yml@v1.2.0
+ with:
+ env: '["py38", "py39", "py310"]'
+ os: ubuntu-latest