Use trusted publisher with PyPi and blessed action (#218) #222
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: Unit tests for summarize module | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, labeled, unlabeled] | |
push: | |
branches: [ master ] | |
jobs: | |
run-tests: | |
if: "!contains(github.event.pull_request.labels.*.name, 'no-test')" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.8', '3.9', '3.10' ] | |
name: Python ${{ matrix.python-version }} | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Run unit test for the 'summarize' module | |
run: | | |
cd test/summarize_test | |
python summarize_test.py |