Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
DominiqueMakowski committed Dec 16, 2023
1 parent b7b4011 commit 119484d
Showing 1 changed file with 39 additions and 40 deletions.
79 changes: 39 additions & 40 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,44 @@ name: Tests

on: [push, pull_request]
#on:
# Trigger the workflow on push to master branch or pull request
#push:
#branches:
#- master
#pull_request:
# Trigger the workflow on push to master branch or pull request
#push:
#branches:
#- master
#pull_request:

jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 4
matrix:
# https://help.github.com/articles/virtual-environments-for-github-actions
platform:
- ubuntu-latest # ubuntu-18.04
# - macos-latest # macOS-10.14
# - windows-latest # windows-2019
python-version: [3.7, 3.8]
#exclude:
# - platform: windows-latest
# python-version: 3.8
build:
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 4
matrix:
# https://help.github.com/articles/virtual-environments-for-github-actions
platform:
- ubuntu-latest # ubuntu-18.04
# - macos-latest # macOS-10.14
# - windows-latest # windows-2019
python-version: [3.11, 3.12]
#exclude:
# - platform: windows-latest
# python-version: 3.8

steps:
- uses: actions/checkout@master

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade setuptools pip wheel
python -m pip install tox
- name: Test with tox
run: |
cd $GITHUB_WORKSPACE && python -m tox -e py
steps:
- uses: actions/checkout@master

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade setuptools pip wheel
python -m pip install tox
- name: Test with tox
run: |
cd $GITHUB_WORKSPACE && python -m tox -e py
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1

0 comments on commit 119484d

Please # to comment.