This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:darrenburns/ward into master
- Loading branch information
Showing
11 changed files
with
671 additions
and
487 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 |
---|---|---|
|
@@ -3,8 +3,8 @@ name: Build | |
on: | ||
push: | ||
branches: | ||
- master | ||
- release/* | ||
- master | ||
- release/* | ||
|
||
jobs: | ||
test: | ||
|
@@ -14,28 +14,37 @@ jobs: | |
max-parallel: 9 | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
python-version: [3.6, 3.7, 3.8] | ||
os: [ ubuntu-latest, macOS-latest, windows-latest ] | ||
python-version: [ 3.6, 3.7, 3.8, 3.9 ] | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: dschep/[email protected] | ||
with: | ||
version: 1.0.3 | ||
create_virtualenvs: true | ||
- name: Run tests with Ward | ||
run: | | ||
poetry install | ||
poetry run coverage run -m ward | ||
poetry run coverage xml -i | ||
- name: Upload coverage report to codecov | ||
run: | | ||
bash <(curl -s https://codecov.io/bash) -f coverage.xml | ||
shell: bash | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- uses: snok/[email protected] | ||
with: | ||
virtualenvs-create: true | ||
|
||
- name: Install dependencies | ||
run: poetry install --no-interaction | ||
|
||
- name: Run tests with Ward | ||
run: | | ||
poetry run coverage run -m ward | ||
poetry run coverage xml -i | ||
- name: Upload coverage report to codecov | ||
run: | | ||
bash <(curl -s https://codecov.io/bash) -f coverage.xml | ||
shell: bash | ||
|
||
# TODO: Update to use the Makefile and actually enforce this. | ||
# - name: Lint with flake8 (CONFIG OUTDATED) | ||
|
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,6 +1,6 @@ | ||
name: Ward Pull Requests | ||
|
||
on: [pull_request] | ||
on: [ pull_request ] | ||
|
||
jobs: | ||
test: | ||
|
@@ -10,25 +10,34 @@ jobs: | |
max-parallel: 9 | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
python-version: [3.6, 3.7, 3.8] | ||
os: [ ubuntu-latest, macOS-latest, windows-latest ] | ||
python-version: [ 3.6, 3.7, 3.8, 3.9 ] | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: dschep/[email protected] | ||
with: | ||
version: 1.0.3 | ||
create_virtualenvs: true | ||
- name: Run tests with Ward | ||
run: | | ||
poetry install | ||
poetry run coverage run -m ward | ||
poetry run coverage xml -i | ||
- name: Upload coverage report to codecov | ||
run: | | ||
bash <(curl -s https://codecov.io/bash) -f coverage.xml | ||
shell: bash | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- uses: snok/[email protected] | ||
with: | ||
virtualenvs-create: true | ||
|
||
- name: Install dependencies | ||
run: poetry install --no-interaction | ||
|
||
- name: Run tests with Ward | ||
run: | | ||
poetry run coverage run -m ward | ||
poetry run coverage xml -i | ||
- name: Upload coverage report to codecov | ||
run: | | ||
bash <(curl -s https://codecov.io/bash) -f coverage.xml | ||
shell: bash |
Oops, something went wrong.