register events to avoid processing duplicate events #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: [3.6, 3.7, 3.8, 3.9, '3.10'] | |
fail-fast: false | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{matrix.python}} | |
- name: Install required Python packages + pytest | |
run: | | |
python -m pip install -r requirements.txt | |
python -m pip install pytest | |
- name: Run test suite | |
run: | | |
./test.sh |