-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtest.yml
More file actions
63 lines (55 loc) · 1.93 KB
/
Copy pathtest.yml
File metadata and controls
63 lines (55 loc) · 1.93 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# SPDX-License-Identifier: Apache-2.0
# Licensed to the Ed-Fi Alliance under one or more agreements.
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
# See the LICENSE and NOTICES files in the project root for more information.
name: Ed-Fi Paging Volume Tests
on:
pull_request:
paths:
- 'src/edfi-paging-test/**'
- '!src/edfi-paging-test/**/*.md'
push:
paths:
- 'src/edfi-paging-test/**'
- '!src/edfi-paging-test/**/*.md'
branches:
- main
workflow_dispatch:
permissions: read-all
jobs:
test-edfi-paging-test:
name: Run unit, style, and type checks
runs-on: ubuntu-20.04
env:
PACKAGE_NAME: edfi-paging-test
SRC_DIR: src/edfi-paging-test
LOCK_FILE: src/edfi-paging-test/poetry.lock
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Poetry
run: pipx install poetry
- name: Install Python 3.12
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.12"
cache: "poetry"
- name: Run CI Test Task
run: |
# Next line keeps poetry from trying to use the runner's default Python version
pushd ${{ env.SRC_DIR }} && poetry env use "3.12" && popd
python ./eng/build.py ci:test ${{ env.PACKAGE_NAME }}
- name: Test Report
uses: dorny/test-reporter@c9b3d0e2bd2a4e96aaf424dbaa31c46b42318226 #v1.6.0
if: success() || failure()
with:
name: Pytest results
path: "**/pytest-junit.xml"
reporter: java-junit
- name: Test Report
uses: dorny/test-reporter@c9b3d0e2bd2a4e96aaf424dbaa31c46b42318226 #v1.6.0
if: success() || failure()
with:
name: MyPy results
path: "**/mypy-junit.xml"
reporter: java-junit