-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (30 loc) · 1013 Bytes
/
testing.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
name: pytest
# Triggers the workflow on push for all branches
on: [push]
jobs:
pytest:
runs-on: ubuntu-latest
steps:
# Check out repo and set up Python
- name: Check out the repository
uses: actions/checkout@v4
with:
lfs: true
# Use cached python and dependencies, install poetry
- name: "Setup Python, Poetry and Dependencies"
uses: packetcoders/action-setup-cache-python-poetry@main
with:
python-version: 3.8
poetry-version: 1.2.2
- name: Install dependencies
run:
python -m pip install pytest coverage coveralls
# Run pytest with coverage report and upload results to coveralls
- name: Run tests on python 3.8
run: |
coverage run -m pytest --full-trace --show-capture=no -sv tests
- name: Submit to coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github