fix workflow #26
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: Tests | ||
on: ["push", "pull_request"] | ||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
python-version: | ||
- "3.12" | ||
- "3.11" | ||
- "3.10" | ||
- "3.9" | ||
- "3.8" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install .[docs,test] | ||
sudo apt install tesseract-ocr | ||
- name: Run tests | ||
run: pytest | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@v2 | ||
if: ${{matrix.python-version == "3.12" }} | ||
Check failure on line 35 in .github/workflows/test.yml GitHub Actions / TestsInvalid workflow file
|
||
with: | ||
file: coverage.lcov | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |