update #37
This file contains hidden or 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 Fast Tests on Push only | |
| on: | |
| push: | |
| branches: | |
| - 600-feature-improve-github-testing | |
| pull_request: | |
| jobs: | |
| fast-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | |
| pip install -r requirements.txt | |
| - name: Install dependencies | |
| run: pip install -r rtd_requirements.txt | |
| - name: Install project | |
| run: pip install -e . | |
| - name: Run fast tests on push | |
| if: github.event_name == 'push' | |
| run: pytest -m "fast" | |
| - name: Run all tests on PR | |
| if: github.event_name == 'pull_request' | |
| run: pytest |