Skip to content

Commit 7b1e175

Browse files
committed
update github action
1 parent 7a40111 commit 7b1e175

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/test.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build and Test
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
# [macos-latest, macos-latest, windows-latest]
8+
runs-on: ubuntu-latest
9+
strategy:
10+
# You can use PyPy versions in python-version.
11+
# For example, pypy2 and pypy3
12+
matrix:
13+
python-version: [3.9]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
# You can test your matrix by printing the current Python version
22+
- name: Display Python version
23+
run: python -c "import sys; print(sys.version)"
24+
- name: Install dependencies
25+
run: |
26+
pip install -U pip
27+
pip install -U setuptools
28+
pip install -r requirements.txt
29+
python -m pip install -U --editable ".[dev]"
30+
- name: Test with pytest
31+
run: python -m pytest tests/

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ tutorial/_build/
105105
!.jenkins/
106106
!.scaffold.yaml
107107
!.readthedocs.yml
108+
!.github/
108109

109110
# Java
110111
*.class

0 commit comments

Comments
 (0)