Remove sudo #21
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: ci | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
test-and-coverage: | |
strategy: | |
matrix: | |
python-version: ['2.7','3.5','3.12'] | |
container: | |
image: python:${{ matrix.python-version }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v4 | |
- name: Test (Python 2) | |
if: matrix.python-version == '2.7' | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pytest pytest-cov | |
python -m pytest --cov | |
- name: Test (Python 3) | |
if: matrix.python-version != '2.7' | |
run: | | |
apt-get -y install python3-venv | |
python3 -m venv venv | |
venv/bin/python3 -m pip install --upgrade pip | |
venv/bin/python3 -m pip install pytest pytest-cov | |
venv/bin/python3 -m pytest --cov | |
- name: Coveralls | |
if: matrix.python-version == '3.12' | |
uses: coverallsapp/github-action@v2 |