-
Notifications
You must be signed in to change notification settings - Fork 10
32 lines (29 loc) · 953 Bytes
/
pytest.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
name: pytest
# Run all pytests in the test folder
on: [ push, pull_request ]
permissions:
contents: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest rocrate jsonschema rocrateValidator
- name: Test with pytest
run: |
pytest --tb=short -s
continue-on-error: true
- name: Create action summary
run: |
cat tests/logging.md >> $GITHUB_STEP_SUMMARY