0.2.5 #19
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] | |
steps: | |
- uses: actions/checkout@v3 # Assuming 'v3' is the latest version | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 # Assuming 'v3' is the latest version | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install . | |
- name: Install pytest | |
run: | | |
pip install pytest | |
- name: Add project root to PYTHONPATH | |
run: echo "PYTHONPATH=${{ github.workspace }}" >> $GITHUB_ENV | |
- name: Run tests | |
run: | | |
pytest tests/test_analyzer.py | |
pytest tests/test_classifier.py | |
working-directory: ./ # Adjust if necessary to point to the directory where pytest should run |