Update JsonLoader import (#8) #6
Workflow file for this run
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
name: Test and Release | |
on: | |
push: | |
branches: main | |
tags: v*.*.* | |
pull_request: | |
branches: [ "main" ] | |
types: | |
- synchronize | |
- opened | |
- reopened | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.sha }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Build and test | |
runs-on: ubuntu-latest | |
permissions: | |
# Gives the action the necessary permissions for publishing new | |
# comments in pull requests. | |
pull-requests: write | |
contents: write | |
statuses: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y python-apt-dev python3-apt | |
- name: Verify changes | |
uses: EffectiveRange/python-verify-github-action@v1 | |
with: | |
coverage-threshold: '95' | |
release: | |
if: startsWith(github.ref, 'refs/tags/') | |
needs: test | |
name: Publish and release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y python-apt-dev python3-apt | |
- name: Package and publish | |
uses: EffectiveRange/python-package-github-action@v2 | |
with: | |
debian-dist-type: 'fpm-deb' | |
- name: Release | |
uses: EffectiveRange/version-release-github-action@v1 |