Skip to content

Commit ee7a0aa

Browse files
adding pytest workflow
1 parent 1dd6d6a commit ee7a0aa

File tree

4 files changed

+40
-1
lines changed

4 files changed

+40
-1
lines changed

.github/workflows/pytest.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: pytest
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [3.7, 3.8, 3.9, 3.10]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install Pytest dependency
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install pytest
23+
- name: Test with pytest
24+
run: |
25+
pytest

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
node_modules
22
*.vsix
3+
*.pyc
4+
output.txt

.vscode/settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"python.testing.pytestArgs": [
3+
"test"
4+
],
5+
"python.testing.unittestEnabled": false,
6+
"python.testing.pytestEnabled": true
7+
}

.vscodeignore

+6-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
vscode_ext_gen.py
1+
vscode_ext_gen.py
2+
src/**
3+
test/**
4+
.vscode/**
5+
.github/**
6+
.prettierrc.yml

0 commit comments

Comments
 (0)