From 5afe26d124d2ff1266586e4edea36877d67eb576 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Mon, 25 Nov 2019 15:56:42 -0300 Subject: Create pythonapp.yml --- .github/workflows/pythonapp.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/pythonapp.yml (limited to '.github') diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml new file mode 100644 index 0000000..fe097ab --- /dev/null +++ b/.github/workflows/pythonapp.yml @@ -0,0 +1,22 @@ +name: pcb-tools + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements-dev.txt + - name: Test with pytest + run: | + pip install pytest + pytest -- cgit From 5d05e7db8ee6d55e90bccad2efecfd7eb7f145fa Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Mon, 25 Nov 2019 16:10:33 -0300 Subject: Update and rename pythonapp.yml to pcb-tools.yml --- .github/workflows/pcb-tools.yml | 26 ++++++++++++++++++++++++++ .github/workflows/pythonapp.yml | 22 ---------------------- 2 files changed, 26 insertions(+), 22 deletions(-) create mode 100644 .github/workflows/pcb-tools.yml delete mode 100644 .github/workflows/pythonapp.yml (limited to '.github') diff --git a/.github/workflows/pcb-tools.yml b/.github/workflows/pcb-tools.yml new file mode 100644 index 0000000..d125a46 --- /dev/null +++ b/.github/workflows/pcb-tools.yml @@ -0,0 +1,26 @@ +name: pcb-tools + +on: [push, pull_request] + +jobs: + build: + strategy: + matrix: + python: [3.7] + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: ${matrix.python} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements-dev.txt + - name: Test with pytest + run: | + pip install pytest + pytest diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml deleted file mode 100644 index fe097ab..0000000 --- a/.github/workflows/pythonapp.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: pcb-tools - -on: [push, pull_request] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Set up Python 3.7 - uses: actions/setup-python@v1 - with: - python-version: 3.7 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements-dev.txt - - name: Test with pytest - run: | - pip install pytest - pytest -- cgit From 3602ce4d684b7ddfd2f8c825c72414cdbbd20775 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Mon, 25 Nov 2019 16:16:35 -0300 Subject: Update pcb-tools.yml --- .github/workflows/pcb-tools.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/pcb-tools.yml b/.github/workflows/pcb-tools.yml index d125a46..8f52f00 100644 --- a/.github/workflows/pcb-tools.yml +++ b/.github/workflows/pcb-tools.yml @@ -6,7 +6,7 @@ jobs: build: strategy: matrix: - python: [3.7] + python-version: [2.7, 3.4, 3.5, 3.6, 3.7, 3.8] runs-on: ubuntu-latest @@ -15,7 +15,7 @@ jobs: - name: Set up Python 3.7 uses: actions/setup-python@v1 with: - python-version: ${matrix.python} + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip -- cgit From 79428db321ff0b78edd183dd8586580b4e93f58f Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Mon, 25 Nov 2019 16:19:10 -0300 Subject: Update pcb-tools.yml --- .github/workflows/pcb-tools.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.github') diff --git a/.github/workflows/pcb-tools.yml b/.github/workflows/pcb-tools.yml index 8f52f00..6164c4a 100644 --- a/.github/workflows/pcb-tools.yml +++ b/.github/workflows/pcb-tools.yml @@ -1,18 +1,18 @@ name: pcb-tools -on: [push, pull_request] +on: [push] jobs: - build: + test: strategy: matrix: - python-version: [2.7, 3.4, 3.5, 3.6, 3.7, 3.8] + python-version: [2.7, 3.5, 3.6, 3.7, 3.8] runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - name: Set up Python 3.7 + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v1 with: python-version: ${{ matrix.python-version }} -- cgit From cee1fcff3ac8c15e8888dd0d4738c3c7f1db196d Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Mon, 25 Nov 2019 23:40:59 -0300 Subject: Run workflow checks on PRs --- .github/workflows/pcb-tools.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/pcb-tools.yml b/.github/workflows/pcb-tools.yml index 6164c4a..85038a7 100644 --- a/.github/workflows/pcb-tools.yml +++ b/.github/workflows/pcb-tools.yml @@ -1,6 +1,6 @@ name: pcb-tools -on: [push] +on: [push, pull_request] jobs: test: -- cgit From ef589a064015de3a1ce6487dbb56b99332673e9d Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Tue, 26 Nov 2019 00:37:41 -0300 Subject: Migrate to pytest (#111) * Migrate to pytest All tests were update to use pytest. Tests were alse black formatted. Eventually all code will be black formatted but need to merge some PRs first. --- .github/workflows/pcb-tools.yml | 2 -- 1 file changed, 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/pcb-tools.yml b/.github/workflows/pcb-tools.yml index 85038a7..931c075 100644 --- a/.github/workflows/pcb-tools.yml +++ b/.github/workflows/pcb-tools.yml @@ -18,9 +18,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip pip install -r requirements-dev.txt - name: Test with pytest run: | - pip install pytest pytest -- cgit From 95aea8e6909a3e24c0eab055851c72f81d694ae8 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Tue, 26 Nov 2019 23:11:52 -0300 Subject: Add codecov.io support --- .github/workflows/pcb-tools.yml | 44 ++++++++++++++++++++++++++++++----------- 1 file changed, 32 insertions(+), 12 deletions(-) (limited to '.github') diff --git a/.github/workflows/pcb-tools.yml b/.github/workflows/pcb-tools.yml index 931c075..59abe6c 100644 --- a/.github/workflows/pcb-tools.yml +++ b/.github/workflows/pcb-tools.yml @@ -1,6 +1,6 @@ name: pcb-tools -on: [push, pull_request] +on: [push] jobs: test: @@ -11,14 +11,34 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - pip install -r requirements-dev.txt - - name: Test with pytest - run: | - pytest + - uses: actions/checkout@v1 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + pip install -r requirements-dev.txt + - name: Test with pytest + run: | + pytest + coverage: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up Python 3.8 + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install dependencies + run: | + pip install -r requirements-dev.txt + - name: Run coverage + run: | + make test-coverage + - uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.xml + flags: unittest -- cgit From 232d9258cc1556e1c6421ba6dc043746b7ae3d5f Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Wed, 27 Nov 2019 11:54:37 -0300 Subject: No more 2.7 on CI, plan is to move to 3.5+ only --- .github/workflows/pcb-tools.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/pcb-tools.yml b/.github/workflows/pcb-tools.yml index 59abe6c..0575212 100644 --- a/.github/workflows/pcb-tools.yml +++ b/.github/workflows/pcb-tools.yml @@ -6,7 +6,7 @@ jobs: test: strategy: matrix: - python-version: [2.7, 3.5, 3.6, 3.7, 3.8] + python-version: [3.5, 3.6, 3.7, 3.8] runs-on: ubuntu-latest -- cgit From 634edac438fa820004f4550af9dfefd65dc1de8d Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Thu, 28 Nov 2019 00:45:00 -0300 Subject: Do not fail fast when matrix build fails --- .github/workflows/pcb-tools.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.github') diff --git a/.github/workflows/pcb-tools.yml b/.github/workflows/pcb-tools.yml index 0575212..38f7349 100644 --- a/.github/workflows/pcb-tools.yml +++ b/.github/workflows/pcb-tools.yml @@ -5,6 +5,7 @@ on: [push] jobs: test: strategy: + fail-fast: false matrix: python-version: [3.5, 3.6, 3.7, 3.8] -- cgit From a7684448ba0d5ab2fc1529cd8728194b7284a08c Mon Sep 17 00:00:00 2001 From: Hamilton Kibbe Date: Sat, 30 May 2020 10:22:19 -0400 Subject: Run workflow on pull request --- .github/workflows/pcb-tools.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/pcb-tools.yml b/.github/workflows/pcb-tools.yml index 38f7349..feb0a74 100644 --- a/.github/workflows/pcb-tools.yml +++ b/.github/workflows/pcb-tools.yml @@ -1,6 +1,6 @@ name: pcb-tools -on: [push] +on: [push, pull_request] jobs: test: -- cgit