Skip to content

Commit

Permalink
How about this
Browse files Browse the repository at this point in the history
  • Loading branch information
rwhitt2049 committed Aug 25, 2023
1 parent 1e10abc commit dc0534e
Showing 1 changed file with 46 additions and 44 deletions.
90 changes: 46 additions & 44 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,32 +40,6 @@
# python3 -m pytest


#
#name: Python package
#
#on:
# - push
# - pull_request
#
#jobs:
# build:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: ['3.7', '3.8', '3.9', '3.10']
#
# steps:
# - uses: actions/checkout@v3
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# python -m pip install tox tox-gh-actions
# - name: Test with tox
# run: tox

name: Python package

Expand All @@ -76,27 +50,55 @@ on:
branches: [ "develop" ]

jobs:
tests:
name: tox on ${{ matrix.python-version }}
build:
runs-on: ubuntu-latest
env:
USING_COVERAGE: '3.6,3.8'

strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -VV
# python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade coverage[toml] tox tox-gh-actions
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox tox-gh-actions
- name: Test with tox
run: tox

- name: Run tox targets for ${{ matrix.python-version }}
run: python -m tox
#name: Python package
#
#on:
# push:
# branches: [ "develop", "feature/*" ]
# pull_request:
# branches: [ "develop" ]
#
#jobs:
# tests:
# name: tox on ${{ matrix.python-version }}
# runs-on: ubuntu-latest
# env:
# USING_COVERAGE: '3.6,3.8'
#
# strategy:
# matrix:
# python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
#
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -VV
## python -m site
# python -m pip install --upgrade pip setuptools wheel
# python -m pip install --upgrade coverage[toml] tox tox-gh-actions
#
# - name: Run tox targets for ${{ matrix.python-version }}
# run: python -m tox

0 comments on commit dc0534e

Please sign in to comment.