Skip to content

Commit

Permalink
Frankly puzzled
Browse files Browse the repository at this point in the history
  • Loading branch information
mapio committed Mar 15, 2022
1 parent e78fff4 commit 83c7ceb
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 74 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/publish.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/release.yml

This file was deleted.

57 changes: 57 additions & 0 deletions .github/workflows/test-release-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Test, release and publish

on: [push, pull_request]

jobs:

test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9"]
steps:
- run: echo "Current ref ${{ github.ref }}"
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip tox-gh
python -m pip install -e .[test]
install_antlrjar
- name: Test with coverage/unittest
run: |
export ANTLR4_JAR="/home/runner/work/liblet/liblet/jars/antlr-4.9.3-complete.jar" && tox4
- name: Publish to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

release:
runs-on: ubuntu-latest
needs: test
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: CHANGELOG.txt

publish:
runs-on: ubuntu-latest
needs: test
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- name: Install pypa/build
run: python -m pip install build
- name: Build the binary wheel and source tarball
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
30 changes: 0 additions & 30 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 83c7ceb

Please sign in to comment.