-
-
Notifications
You must be signed in to change notification settings - Fork 61
47 lines (39 loc) · 1.37 KB
/
python-test.yml
File metadata and controls
47 lines (39 loc) · 1.37 KB
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
40
41
42
43
44
45
46
47
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@v6
with:
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.ref }}
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "latest"
- name: Install dependencies
run: poetry install
- name: Run unit tests
run: poetry run pytest test/unit
- name: Run integration tests
run: poetry run pytest test/integration/action_plugins
- name: Run action_interaction tests
run: poetry run pytest test/action_interaction