Skip to content

Commit

Permalink
Merge pull request #16 from FuzzFoundation/bug/fix-github-actions-int…
Browse files Browse the repository at this point in the history
…o-main

Fix building and publishing github actions
  • Loading branch information
misimpso authored Jan 31, 2022
2 parents abc0ae7 + 90c4e72 commit ff102e4
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 65 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build & Publish

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Create virtual environment
run: make init
- name: Build module
run: make build
- uses: actions/upload-artifact@v2
with:
name: wktplot_dist
path: dist/

publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: wktplot_dist
path: dist
- name: Publish package
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
print_hash: true
28 changes: 28 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: unittest

on:
- pull_request

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Create virtual environment and install dependencies
run: make develop
- name: Run tests
run: make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' && github.ref == 'refs/heads/main'
- name: Codacy Analysis CLI
uses: codacy/[email protected]
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' && github.ref == 'refs/heads/main'
64 changes: 0 additions & 64 deletions .github/workflows/wktplot.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/wktplot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .wktplot import WKTPlot # noqa: F401

__version__ = "2.0.0"
__version__ = "2.0.dev0"

0 comments on commit ff102e4

Please sign in to comment.