-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 904 Bytes
/
main.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
name: Geollama CI/CD
on:
push:
branches:
- "**"
pull_request:
types:
[opened, reopened, closed]
branches:
- "**"
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10.14
- name: Install package
run: |
python3 -m pip install --upgrade pip
pip3 install -e .
- name: Run tests
run: |
pip3 install pytest pytest-cov
pytest --cov=./GeoLlama --cov-report xml:coverage.xml --cov-report term-missing --cov-branch
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: rosalindfranklininstitute/GeoLlama