Skip to content

Add user script setup and teardown to Gremlin #67

Add user script setup and teardown to Gremlin

Add user script setup and teardown to Gremlin #67

Workflow file for this run

name: CI Tests
on:
workflow_dispatch:
push:
branches: [ "**" ]
pull_request_target:
branches: [ "**" ]
jobs:
test:
runs-on: windows-latest
if: |
github.event_name == 'push' ||
(github.event_name == 'pull_request_target' &&
(github.event.pull_request.user.login == github.repository_owner ||
github.event.pull_request.author_association == 'OWNER' ||
github.event.pull_request.author_association == 'MEMBER' ||
github.event.pull_request.author_association == 'COLLABORATOR' ||
contains(github.event.pull_request.labels.*.name, 'gh-actions-manager')))
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.ref }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "latest"
- name: Install dependencies
run: poetry install
- name: Run tests
run: poetry run pytest test/unit test/integration/action_plugins