Merge pull request #10 from PonteIneptique/update-for-yaltai #38
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 library | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libvips libvips-dev | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install pytest pytest-cov coveralls pytest-sugar requests-mock | |
- name: Creating environments | |
run: | | |
python3 -m venv yaltaienv | |
yaltaienv/bin/pip install YALTAi --extra-index-url https://download.pytorch.org/whl/cpu | |
python3 -m venv krakenv | |
krakenv/bin/pip install kraken --extra-index-url https://download.pytorch.org/whl/cpu | |
- name: Test | |
run: | | |
pytest --doctest-modules --cov=app --verbose | |
# - name: Coveralls Python | |
# uses: AndreMiras/coveralls-python-action@v20201129 |