Skip to content

add file to auto test #1

add file to auto test

add file to auto test #1

name: Cross-Platform Tests

Check failure on line 1 in .github/workflows/cross-platform.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cross-platform.yml

Invalid workflow file

(Line: 13, Col: 1): 'on' is already defined
## activate tests when change the version, or a test
on:
push:
#branches: [main]
paths:
- 'pyproject.toml'
- 'tox.ini'
- 'requirements*.txt'
- '.github/workflows/cross-platform.yml'
on:
push:
branches:
- main
- release/** # release/1.0, release/2.x, etc.
tags:
- 'v*' # v1.0, v2.3.1, etc.
pull_request:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: pip install tox tox-gh-actions
- name: Run tox
run: tox