Skip to content

Adapt CI to use Docker container for Python 2.7 testing, add Python 3.11 support, and fix MIME type detection #68

Adapt CI to use Docker container for Python 2.7 testing, add Python 3.11 support, and fix MIME type detection

Adapt CI to use Docker container for Python 2.7 testing, add Python 3.11 support, and fix MIME type detection #68

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python Testing
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
test-python3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install -e .
- name: Tests
run: |
mamba
test-python2:
runs-on: ubuntu-latest
container: python:2.7-slim
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install -e .
- name: Tests
run: |
mamba