diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..635a0498 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,21 @@ +name: main + +on: + push: + branches: [main, test-me-*] + tags: '*' + pull_request: + +jobs: + main-windows: + uses: asottile/workflows/.github/workflows/tox.yml@v1.11.1 + with: + # Include pypy3 + minimum py3 + maximum py3 on Windows + env: '["pypy3", "py310", "py314"]' + os: windows-latest + main-linux: + uses: asottile/workflows/.github/workflows/tox.yml@v1.11.1 + with: + env: '["pypy3", "py310", "py311", "py312", "py313", "py314", "py315"]' + os: ubuntu-latest + diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 74fd30e3..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Test - -on: - pull_request: - push: - branches: [main, 'test-me-*'] - tags: ['*'] - -jobs: - build: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15-dev", "pypy-3.11"] - os: [ubuntu-latest] - # Include minimum py3 + maximum py3 + pypy3 on Windows - include: - - { os: "windows-latest" , python-version: "3.10" } - - { os: "windows-latest" , python-version: "3.14" } - - { os: "windows-latest" , python-version: "pypy-3.11" } - - 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 -U tox - - - name: Tox tests - run: tox -e py