-
Notifications
You must be signed in to change notification settings - Fork 49
65 lines (54 loc) · 1.82 KB
/
unit_test_coverage.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Unit Test coverage
on: [push, pull_request]
env:
AWS_DEFAULT_REGION: us-west-2
jobs:
test_coverage_python:
runs-on: ubuntu-latest
continue-on-error: false
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12']
env:
PYTHONWARNINGS: ignore
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/[email protected]
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup Environment
run: |
./devtool env_setup
- name: Create virtual env
run: |
python -m venv .fmeval_venv
source .fmeval_venv/bin/activate
- name: Install dependencies with poetry
run: |
./devtool install_deps
- name: Test with code coverage
run: |
./devtool unit_test_with_coverage
echo "All build and unit tests passed."
- name: Build Package binary wheel
run: |
./devtool build_package
echo "Package build Succeeded. 😊"