Skip to content

Commit

Permalink
Add a build test
Browse files Browse the repository at this point in the history
  • Loading branch information
diocas committed Jan 19, 2024
1 parent bb4bb27 commit 572aae1
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Tests the build of the extension

on:
# Triggers the workflow on push or pull request events but only for the master branch
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build-publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set environnment package version from tag
run: echo "PACKAGE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV # extract "1.2.3" from refs/tags/v1.2.3

- name: Install Python
uses: actions/setup-python@v1
with:
python-version: '3.x'

- name: Install node
uses: actions/setup-node@v4
with:
node-version: '20.x'

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Install dependencies
run: pip install build twine

- name: Build wheel
run: python -m build

0 comments on commit 572aae1

Please sign in to comment.