forked from canonical/indico-plugin-event-countdown
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
90 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,76 @@ | ||
name: Checkin | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
on: push | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
lint: | ||
build-indico-plugin: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
- name: Install dependencies | ||
uses: actions/checkout@v4 | ||
with: | ||
path: plugin | ||
|
||
- name: Clone indico | ||
run: | | ||
git clone https://github.com/indico/indico.git indico-src \ | ||
--depth 1 --branch master | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: npm | ||
cache-dependency-path: indico-src/package-lock.json | ||
|
||
- name: Setup apt packages | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install tox | ||
sudo apt install -y --install-recommends libxslt1-dev libxml2-dev libffi-dev libpcre3-dev \ | ||
libyaml-dev build-essential libpq-dev libpango1.0-dev | ||
sudo apt install -y libjpeg-turbo8-dev zlib1g-dev | ||
- name: npm ci plugin | ||
working-directory: ./plugin | ||
run: npm ci | ||
|
||
- name: npm ci indico | ||
working-directory: ./indico-src | ||
run: npm ci | ||
|
||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
cache: pip | ||
|
||
- name: pip plugin | ||
working-directory: ./plugin | ||
run: pip install -e '.[dev]' | ||
|
||
- name: Tox | ||
working-directory: ./plugin | ||
run: python -m tox | ||
|
||
- name: pip indico | ||
working-directory: ./indico-src | ||
run: pip install -e '.[dev]' | ||
|
||
- name: Build wheel | ||
working-directory: ./indico-src | ||
run: ./bin/maintenance/build-wheel.py plugin ../plugin | ||
|
||
- name: Upload Wheel | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheel | ||
path: indico-src/dist/*.whl | ||
|
||
- name: Release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
fail_on_unmatched_files: true | ||
files: indico-src/dist/*.whl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ build/ | |
webpack-build-config.json | ||
url_map.json | ||
node_modules/ | ||
.tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters