-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update README.rst * update actions * update matrix * update matrix * update matrix * update matrix
- Loading branch information
Showing
2 changed files
with
44 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,63 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: ["master"] | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
tests: | ||
name: "py${{ matrix.python-version }} / ${{ matrix.os }} / PyYAML~=${{ matrix.pyyaml-version }}" | ||
name: py${{ matrix.python-version }} / ${{ matrix.os }} / PyYAML~=${{ matrix.pyyaml-version }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["2.7", "3.6"] | ||
pyyaml-version: ["3.13", "4.2b4", "5.4"] | ||
os: [ubuntu-latest, windows-latest] | ||
python-version: ["3.9"] | ||
pyyaml-version: ["4.2b4", "5.4", "6.0"] | ||
include: | ||
- { os: ubuntu-latest, python-version: "3.10", pyyaml-version: "6.0" } | ||
- { os: macos-latest, python-version: "3.10", pyyaml-version: "6.0" } | ||
- { os: windows-latest, python-version: "3.10", pyyaml-version: "6.0" } | ||
- { os: ubuntu-latest, python-version: "3.7", pyyaml-version: "3.13" } | ||
- { os: windows-latest, python-version: "3.7", pyyaml-version: "3.13" } | ||
- { os: ubuntu-latest, python-version: "3.13", pyyaml-version: "6.0" } | ||
- { os: macos-latest, python-version: "3.13", pyyaml-version: "6.0" } | ||
- { os: windows-latest, python-version: "3.13", pyyaml-version: "6.0" } | ||
|
||
steps: | ||
- uses: "actions/checkout@v2" | ||
- uses: "actions/setup-python@v2" | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "${{ matrix.python-version }}" | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
- name: "Install" | ||
run: | | ||
python -VV | ||
python -m pip install -q pytest pytest-cov pyyaml~=${{ matrix.pyyaml-version }} -e . | ||
python -m pip freeze --all | ||
- name: "Run tests py${{ matrix.python-version }} / ${{ matrix.os }} / PyYAML~=${{ matrix.pyyaml-version }}" | ||
- name: Install | ||
run: python -m pip install -q pytest pytest-cov pyyaml~=${{ matrix.pyyaml-version }} -e . | ||
- name: Run tests py${{ matrix.python-version }} / ${{ matrix.os }} / PyYAML~=${{ matrix.pyyaml-version }} | ||
run: python -m pytest --cov-branch --cov=oyaml | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
tests-27: | ||
name: Python 2.7 on ubuntu-20.04 | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
pyyaml-version: ["3.13", "4.2b4", "5.4"] | ||
|
||
container: | ||
image: python:2.7-buster | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install | ||
run: python -m pip install -q pytest pytest-cov pyyaml~=${{ matrix.pyyaml-version }} -e . | ||
- name: Run tests py${{ matrix.python-version }} / ${{ matrix.os }} / PyYAML~=${{ matrix.pyyaml-version }} | ||
run: python -m pytest --cov-branch --cov=oyaml | ||
- name: Upload coverage to Codecov | ||
uses: "codecov/codecov-action@v1" | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
fail_ci_if_error: true | ||
token: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters