Skip to content

[PERF-313] Fix dependabot alerts #116

[PERF-313] Fix dependabot alerts

[PERF-313] Fix dependabot alerts #116

# 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:
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@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
- name: Install Poetry
run: pipx install poetry
- name: Install Python 3.9
uses: actions/setup-python@98f2ad02fd48d057ee3b4d4f66525b231c3e52b6 # v3.1.2
with:
python-version: "3.9"
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.9" && 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