forked from Macaulay2/M2
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1.36 KB
/
package-review.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#manual-events
# https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#manually-running-a-workflow
name: Package Review Workflow
on:
workflow_dispatch:
inputs:
package:
description: 'Package to install and check'
required: true
default: 'FirstPackage'
jobs:
package-review:
runs-on: ubuntu-latest
name: ${{ github.event.inputs.package }}@${{ github.event.ref }}
steps:
- uses: actions/checkout@v4
- name: Run examples and tests
uses: Macaulay2/M2/.github/actions/package-review@master
id: run_tests
with:
package: ${{ github.event.inputs.package }}
- name: Upload errors
uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{ github.event.inputs.package }}-errors
path: |
${{ github.workspace }}/share/doc/Macaulay2/${{ github.event.inputs.package }}/example-output/*.errors
# /tmp/M2-*/*.tmp # TODO: since tests run in a container, I don't know how to access them
- name: Summary
run: |
echo "${{ steps.run_tests.outputs.numExampleErrors }} error(s) occured running examples"
echo "${{ steps.run_tests.outputs.numTestErrors }} error(s) occured running tests"