-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (36 loc) · 1012 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
37
38
39
40
41
name: pytest
on:
push:
branches: [ main ]
pull_request:
branches: [main]
jobs:
pytest:
# Using matrix strategy
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
runs-on: ubuntu-latest
steps:
#-------------------------------------#
# Check out repo and set up Python #
#-------------------------------------#
- name: Check out the repository
uses: actions/checkout@v4
with:
lfs: true
# - name: "Setup Python and Dependencies"
# uses: actions/setup-python@v4
# with:
# python-version: ${{matrix.python-version}}
# check-latest: true
# cache: 'poetry' # caching poetry dependencies
#------------------------#
# Run pytest
#------------------------#
- name: Run tests
run: |
poetry run pytest --cov=sed -n auto tests/
# Coveralls missing
- name: Coveralls
uses: coverallsapp/github-action@v2