2.2.049 #523
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: PyTest and Publish | |
on: | |
push: | |
tags: ['v[0-9].[0-9]+.[0-9]+'] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
max-parallel: 8 | |
matrix: | |
nv: [ {os: windows-latest, py: 3.8}, {os: macos-latest, py: 3.9}, {os: ubuntu-latest, py: "3.11"} ] | |
runs-on: ${{ matrix.nv.os }} | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.nv.py }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.nv.py }} | |
- uses: FedericoCarboni/setup-ffmpeg@v2 | |
- name: Install Dependencies | |
run: | | |
python -m pip install pdm 'requests<2.30.0' | |
pdm install --no-editable -G deluxe -G test | |
- name: Run pytest | |
run: pdm run pytest | |
publish: | |
needs: test | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install pdm | |
run: python -m pip install pdm 'requests<2.30.0' | |
- name: Build and publish | |
run: pdm publish -u __token__ -P ${{ secrets.PYPI_TOKEN }} | |
release: | |
needs: [test, publish] | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: chapmanjacobd/create-release-node16@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: false |