Skip to content

ci: use OIDC for pypi publishing #71

ci: use OIDC for pypi publishing

ci: use OIDC for pypi publishing #71

Workflow file for this run

name: check
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install tools
run: |
python -m pip install --upgrade pip setuptools wheel pipenv
- name: Install virtualenv using Pipenv
run: |
pipenv --python ${{ matrix.python-version }} sync --dev
- name: Run linters
if: ${{ matrix.python-version == '3.9' }}
run: |
pipenv run make lint
- name: Install jobrunner
run: |
pipenv run make install
- name: Run tests
run: |
pipenv run make check
all-testing:
runs-on: ubuntu-latest
needs: [check]
if: always()
steps:
- name: All tests passed
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Some tests failed
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1