Skip to content

Commit

Permalink
Change github actions build job and add new build job for different P…
Browse files Browse the repository at this point in the history
…ython versions
  • Loading branch information
elikoga committed Jun 3, 2024
1 parent 4245ffa commit 601ce6f
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
build-old-python:
strategy:
matrix:
python-version: [ '3.6', '3.7', '3.8', '3.9' ]
python-version: ['3.6', '3.7']

# The type of runner that the job will run on
runs-on: ubuntu-20.04
Expand All @@ -37,3 +37,29 @@ jobs:

- name: Test
run: tox -e py -- -vv

build-new-python:
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

# The type of runner that the job will run on
runs-on: ubuntu-22.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

# Runs a set of commands using the runners shell
- name: Setup
run: pip install tox

- name: Show environment
run: set

- name: Test
run: tox -e py -- -vv

0 comments on commit 601ce6f

Please sign in to comment.