-
Notifications
You must be signed in to change notification settings - Fork 150
34 lines (27 loc) · 867 Bytes
/
test.yml
File metadata and controls
34 lines (27 loc) · 867 Bytes
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: Test
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python 3.10
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install python-dateutil pytest mock pytest-cov coverage ruff
- name: Check code formatting
run: ruff format .
- name: Check for code errors
run: ruff check .
- name: Run Test
run: |
py.test --cov coveralls --cov-report term-missing --cov-report=lcov --cov=resources tests/
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2.3.7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov