]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Add GitHub Actions workflow for building packages
authorAarni Koskela <akx@iki.fi>
Thu, 16 Jun 2022 05:29:29 +0000 (08:29 +0300)
committerAarni Koskela <akx@iki.fi>
Thu, 16 Jun 2022 05:35:40 +0000 (08:35 +0300)
.github/workflows/build.yml [new file with mode: 0644]

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644 (file)
index 0000000..7c6a990
--- /dev/null
@@ -0,0 +1,25 @@
+name: CI
+"on":
+  push:
+    branches:
+      - master
+  pull_request:
+    branches:
+      - master
+jobs:
+  Build:
+    runs-on: ubuntu-20.04
+    steps:
+      - uses: actions/checkout@v3
+      - uses: actions/setup-python@v4
+        with:
+          python-version: "3.10"
+          cache: "pip"
+          cache-dependency-path: "**/setup.py"
+      - run: pip install build -e .
+      - run: make import-cldr
+      - run: python -m build
+      - uses: actions/upload-artifact@v3
+        with:
+          name: dist
+          path: dist