-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 1.01 KB
/
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
name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Only run after linting has finished
# workflow_run:
# workflows: ['ruff']
# types: [completed]
jobs:
test:
runs-on: ubuntu-latest
# TODO run on all supported versions of the project
# strategy:
# matrix:
# python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: abatilo/actions-poetry@v2
- name: Install the project dependencies
run: poetry install --with=dev
- name: Run the tests
run: poetry run -- pytest tests --cov=dfttoolkit --cov-report xml
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
compare-ref: ${{ github.event.repository.default_branch }}