read multiple requests files #28
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: Python tests | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# You can test your matrix by printing the current Python version | |
- name: Install test requirements | |
run: pip install -r tests/test-requirements.txt | |
- name: Install main requirements | |
run: pip install -r requirements.txt | |
- name: Lint with flake8 | |
run: pip install flake8 && flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
- name: Test with pytest | |
run: pytest |