Repository navigation
61 lines (61 loc) · 1.55 KB
/
Copy pathunittest.yml
File metadata and controls
61 lines (61 loc) · 1.55 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
# .github/workflows/unittest.yml: configuration file for github actions worflow
# This file was automatically generated using 'python -m vsc.install.ci'
# DO NOT EDIT MANUALLY
jobs:
python_ruff_check:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{matrix.python}}
- name: install ruff
run: pip install 'ruff'
- name: Run ruff
run: ruff check .
strategy:
matrix:
python:
- 3.9
python_ruff_format:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{matrix.python}}
- name: install ruff
run: pip install 'ruff'
- name: Run ruff format
run: ruff format --check .
strategy:
matrix:
python:
- 3.9
python_unittests:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: install tox
run: pip install 'virtualenv' 'tox'
- name: add mandatory git remote
run: git remote add hpcugent https://github.com/hpcugent/vsc-install.git
- name: Run tox
run: tox -e py$(echo ${{ matrix.python }} | sed 's/\.//g')
strategy:
matrix:
python:
- 3.9
name: run python tests
'on':
- push
- pull_request