Skip to content

Commit ad752ea

Browse files
committed
add github action
1 parent ed96e15 commit ad752ea

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.github/workflows/unittest.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# .github/workflows/unittest.yml: configuration file for github actions worflow
2+
# This file was automatically generated using 'python -m vsc.install.ci'
3+
# DO NOT EDIT MANUALLY
4+
jobs:
5+
python_unittests:
6+
runs-on: ubuntu-20.04
7+
steps:
8+
- name: Checkout code
9+
uses: actions/checkout@v3
10+
- name: Setup Python
11+
uses: actions/setup-python@v4
12+
with:
13+
python-version: ${{ matrix.python }}
14+
- name: install tox
15+
run: pip install 'virtualenv<20.22.0' 'tox<4.5.0'
16+
- name: add mandatory git remote
17+
run: git remote add hpcugent https://github.com/hpcugent/vsc-utils.git
18+
- name: Run tox
19+
run: tox -e py
20+
strategy:
21+
matrix:
22+
python:
23+
- 3.6
24+
- 3.9
25+
name: run python tests
26+
'on':
27+
- push
28+
- pull_request

vsc-ci.ini

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
[vsc-ci]
2-
pip3_install_tox=1
3-
py3_tests_must_pass=1
4-
py3_only=1
2+
enable_github_actions=1

0 commit comments

Comments
 (0)