Skip to content

Commit

Permalink
Fix github workflow dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
marcwebbie committed Mar 28, 2024
1 parent dd8e1ae commit c59c9c4
Showing 1 changed file with 26 additions and 17 deletions.
43 changes: 26 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,26 @@ on:
types: [opened, synchronize, reopened]

jobs:
tests-with-coverage-3-10:
name: Run Python Tests with coverage
tests-with-coverage-3-12:
name: Run tests on Ubuntu latest py3.12
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python 3.10
- name: Install depedencies
run: |
sudo apt-get install -y gnupg2
- name: Setup Python 3.12.2
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12.2"
cache: "pip"
cache-dependency-path: '**/setup.py'
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -e . -r requirements/tests.txt
pip install -e . -r requirements/test.txt
- name: Run tests with coverage
run: |
pytest --cov=. --cov-report=term --cov-report=xml:coverage.xml --color=yes
Expand All @@ -34,23 +37,26 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.xml

tests-with-coverage-3-2:
name: Run Python Tests with coverage
runs-on: ubuntu-latest
tests-with-coverage-3-5:
name: Run tests on Ubuntu 20.04 py3.5
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python 3.2
- name: Install depedencies
run: |
sudo apt-get install -y gnupg2
- name: Setup Python 3.5.4
uses: actions/setup-python@v5
with:
python-version: "3.2"
python-version: "3.5.4"
cache: "pip"
cache-dependency-path: '**/setup.py'
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -e . -r requirements/tests.txt
pip install -e . -r requirements/test.txt
- name: Run tests with coverage
run: |
pytest --cov=. --cov-report=term --cov-report=xml:coverage.xml --color=yes
Expand All @@ -60,23 +66,26 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.xml

tests-with-coverage-2-7:
name: Run Python Tests with coverage
runs-on: ubuntu-latest
tests-with-coverage-mac:
name: Run tests on macos 11 py3.12
runs-on: macos-11
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python 2.7
- name: Install depedencies
run: |
brew install gnupg
- name: Setup Python 3.12.2
uses: actions/setup-python@v5
with:
python-version: "2.7"
python-version: "3.12.2"
cache: "pip"
cache-dependency-path: '**/setup.py'
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -e . -r requirements/tests.txt
pip install -e . -r requirements/test.txt
- name: Run tests with coverage
run: |
pytest --cov=. --cov-report=term --cov-report=xml:coverage.xml --color=yes
Expand Down

0 comments on commit c59c9c4

Please sign in to comment.