-
Notifications
You must be signed in to change notification settings - Fork 2
98 lines (84 loc) · 2.78 KB
/
python-testing-linux.yml
File metadata and controls
98 lines (84 loc) · 2.78 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# .github/workflows/python-testing-linux.yml
name: Linux Tests
on:
push:
paths-ignore:
- '**.md'
- '**.rst'
pull_request:
paths-ignore:
- '**.md'
- '**.rst'
jobs:
# check-codecov-token:
# runs-on: ubuntu-latest
# steps:
# - name: Check CODECOV_TOKEN
# run: echo "CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }}"
call-testing-linux:
uses: nrao/gh-actions-templates-public/.github/workflows/python-testing-linux-template.yml@main
with:
cov_project: "toolviper"
test-path: "tests/"
python-versions: '["3.11", "3.12", "3.13"]'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
#This is now in a template
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions.
# on:
# push:
# paths-ignore:
# - '**.md'
# - '**.rst'
# pull_request:
# paths-ignore:
# - '**.md'
# - '**.rst'
# jobs:
# build:
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest]
# python-version: ["3.11", "3.12", "3.13"]
# steps:
# - uses: actions/checkout@v4
# - name: Set up Python 3
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies with pip
# run: |
# python -m pip install --upgrade pip
# pip install . # install your package
# pip install pytest-cov
# - name: Test with pytest
# run: |
# pytest -v tests/ \
# --html=test-results.html --self-contained-html \
# --cov=toolviper --no-cov-on-fail \
# --cov-report=html --cov-report=xml --doctest-modules \
# --junitxml=junit.xml -o junit_family=legacy
# - name: Upload pytest test results and coverage reports
# uses: actions/upload-artifact@v4
# with:
# name: pytest-results-${{ matrix.python-version }}
# path: |
# ./test-results.html
# ./htmlcov
# # Use always() to always run this step to publish test results when there are test failures
# if: ${{ always() }}
# # - name: Check CODECOV_TOKEN
# # run: echo "CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }}"
# - name: Upload code coverage results to Codecov
# uses: codecov/codecov-action@v5
# with:
# token: ${{ secrets.CODECOV_TOKEN }} # Use the passed token from workflow_call
# slug: ${{ github.repository }}
# - name: Upload test stats to Codecov
# if: ${{ !cancelled() }}
# uses: codecov/test-results-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# slug: casangi/graphviper