a | b/.github/workflows/main.yml | ||
---|---|---|---|
1 | name: gpsa |
||
2 | |||
3 | on: |
||
4 | push: |
||
5 | branches: [ main ] |
||
6 | pull_request: |
||
7 | branches: [ main ] |
||
8 | |||
9 | jobs: |
||
10 | build: |
||
11 | |||
12 | runs-on: ubuntu-latest |
||
13 | |||
14 | steps: |
||
15 | - uses: actions/checkout@v2 |
||
16 | - name: Set up Python 3.8 |
||
17 | uses: actions/setup-python@v2 |
||
18 | with: |
||
19 | python-version: 3.7 |
||
20 | - name: Install dependencies |
||
21 | run: | |
||
22 | python setup.py install |
||
23 | pip install flake8 pytest wheel |
||
24 | pip install -r requirements.txt; |
||
25 | - name: Test with pytest |
||
26 | run: | |
||
27 | pytest tests |