Skip to content

Commit

Permalink
build: added all tests also when code is pushed to master
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoTartarini committed Mar 18, 2024
1 parent 7ed22b4 commit 0cf4be7
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,30 @@ on:

jobs:

build:
test:

# I am only testing with py310 but travis is Testing the other versions of Python
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
platform: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v3
- name: Setup Python
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: ${{ matrix.python-version }}
- name: Install Tox and any other packages
run: pip install "tox<4"
run: |
python -m pip install --upgrade pip
python -m pip install "tox<4" tox-gh-actions
- name: Run Tox
run: |
tox -e py310
tox
env:
PLATFORM: ${{ matrix.platform }}

deploy:

Expand Down

0 comments on commit 0cf4be7

Please sign in to comment.