Skip to content

Commit f90e539

Browse files
committed
Use github-actions-wizard generated tests workflow
1 parent 95a32f8 commit f90e539

1 file changed

Lines changed: 22 additions & 19 deletions

File tree

.github/workflows/run_tests.yml

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,37 @@
1-
name: Run Tests
1+
# Generated initially using github-actions-wizard (https://github.com/cmdr2/github-actions-wizard)
22

3+
name: Run Tests
4+
run-name: Run Tests
35
on:
46
push:
5-
branches: main
7+
branches:
8+
- main
69
pull_request:
7-
branches: main
8-
# Manual trigger
10+
branches:
11+
- main
912
workflow_dispatch:
10-
1113
jobs:
1214
test:
1315
runs-on: ubuntu-latest
1416
strategy:
1517
matrix:
1618
python-version: ["3.8", "3.11"]
1719
fail-fast: false
18-
1920
steps:
20-
- uses: actions/checkout@v4
21-
22-
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v4
24-
with:
25-
python-version: ${{ matrix.python-version }}
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: ${{ matrix.python-version }}
2627

27-
- name: Install dependencies
28-
run: |
29-
python -m pip install --upgrade pip
30-
pip install pytest
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install pytest
3132
32-
- name: Run tests
33-
run: |
34-
python -m pytest
33+
- name: Run tests
34+
run: |
35+
python -m pytest
36+
permissions:
37+
contents: read

0 commit comments

Comments
 (0)