/ .github / workflows / test.yml
test.yml
 1  name: Run Tests
 2  
 3  on: [pull_request, push]
 4  
 5  jobs:
 6    test:
 7      runs-on: ubuntu-latest
 8      steps:
 9      - name: Set up Python 3.6
10        uses: actions/setup-python@v1
11        with:
12          python-version: 3.6
13      - name: Versions
14        run: |
15          python3 --version
16      - name: Checkout Current Repo
17        uses: actions/checkout@v1
18        with:
19          submodules: true
20      - name: Install pytest
21        run: pip install pytest
22      - name: Install locally
23        run: pip install .
24      - name: Run tests
25        run: pytest