-
Notifications
You must be signed in to change notification settings - Fork 10
34 lines (30 loc) · 1.06 KB
/
tests_linters.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
name: Tests and Linters 🧪
on: [ push, pull_request ]
jobs:
tests-and-linters:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: "${{ matrix.os }}"
strategy:
matrix:
python-version: ["3.9"]
os: [self-hosted]
steps:
- name: Install dependencies for viewer test
run: sudo apt-get update && sudo apt-get install -y xvfb
- name: Checkout flashbax
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: Install python dependencies 🔧
run: pip install .[dev]
- name: List python packages 📦
run: pip list
- name: Run linters 🖌️
run: pre-commit run --all-files --verbose
- name: Run tests 🧪
run: pytest -n 2 --cov=flashbax --cov-report=term-missing --junit-xml=test-results.xml -vv flashbax
- name: Run coverage
run: |
coverage html --directory=coverage_html_report
coverage report --fail-under=0.97