Update python_tests.yml #5
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: | |
branches: [ main ] | |
push: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8, 3.9, 3.10] | |
steps: | |
- uses: actions/checkout@v3 # Updated to the latest version | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 # Updated to the latest version | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install . | |
- name: Run tests | |
run: | | |
pytest tests/test_analyzer.py | |
pytest tests/test_classifier.py |