chore(deps): update openai requirement from >=1.0.0 to >=1.109.1 #69
Workflow file for this run
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| pytest: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[test]" | |
| - name: Lint with ruff | |
| run: | | |
| python -m pip install ruff | |
| ruff check xcrawler/ tests/ main.py fetch_more_history.py analyze_pro.py analyze_behavior.py analyze_sentiment.py analyze_network.py analyze_only.py visualize.py translate_sync.py export_csv.py | |
| - name: Run tests | |
| run: python -m pytest | |
| package: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Build wheel and source distribution | |
| run: | | |
| python -m pip install --upgrade pip build twine | |
| python -m build | |
| python -m twine check dist/* | |
| - name: Smoke test wheel installation | |
| run: | | |
| python -m venv /tmp/xcrawler-wheel-test | |
| /tmp/xcrawler-wheel-test/bin/python -m pip install dist/*.whl | |
| /tmp/xcrawler-wheel-test/bin/xcrawler --version | |
| /tmp/xcrawler-wheel-test/bin/xcrawler --help |