Merge pull request #140 from Aleph-Alpha/fix-qa-with-prompt-document #546
Workflow file for this run
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: Test things on pushes | |
on: [push, pull_request] | |
jobs: | |
lint-and-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# We support latest 3.x version and 3.7 because | |
# Google Colab uses 3.7 by default. | |
python-version: [3.7, 3.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
cache-dependency-path: | | |
**/setup.py | |
- name: Install deps | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e .[test,types] | |
- name: Lint with mypy | |
run: | | |
mypy aleph_alpha_client | |
mypy --ignore-missing-imports tests | |
- name: Run tests | |
run: | | |
pytest | |
env: | |
TEST_API_URL: https://api.aleph-alpha.com | |
TEST_TOKEN: ${{ secrets.AA_API_TOKEN }} |