Skip to content

Update CI to Python 3.10 #9

Update CI to Python 3.10

Update CI to Python 3.10 #9

Workflow file for this run

name: Unit test and code coverage (Ubuntu)
on:
push:
paths-ignore:
- '**.md'
- '**.yml'
- 'docs/**'
pull_request:
paths-ignore:
- '**.md'
- '**.yml'
- 'docs/**'
jobs:
build:
runs-on: ubuntu-24.04
container:
image: python:3.10-slim
# strategy:
# matrix:
# python-version: [3.10] # Due an issue here https://github.com/actions/setup-python/issues/401, cannot use 3.10
steps:
- name: Checkout
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
pip install pytest coverage coveralls
SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True pip install -r docker_requirements.txt
pip install .[full]
python -m nltk.downloader omw-1.4
python -m pip cache purge
- name: Test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_SERVICE_NAME: github
run: |
coverage run -m unittest discover
coveralls