-
Notifications
You must be signed in to change notification settings - Fork 63
47 lines (38 loc) · 925 Bytes
/
test.yaml
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
name: test
on:
push:
branches:
- master
tags:
- "v[0-9]+.*"
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout source files
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Python 🐍
uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: x64
cache: 'pip'
cache-dependency-path: 'setup.cfg'
- name: Install Python dependencies
run: pip install .[dev]
- name: Run PyTest
run: pytest --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
files: ./coverage.xml
name: codecov-evotorch
verbose: true