Skip to content

ci(pre-commit.ci): autoupdate #155

ci(pre-commit.ci): autoupdate

ci(pre-commit.ci): autoupdate #155

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags: [v*]
pull_request:
workflow_dispatch:
jobs:
check-manifest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: pipx run check-manifest
test:
name: ${{ matrix.platform }} (${{ matrix.python-version }})
runs-on: ${{ matrix.platform }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
platform: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: tlambert03/setup-qt-libs@v1
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
- name: Install OpenCL
if: matrix.platform == 'ubuntu-latest'
run: mamba install pyopencl pocl
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -e .[test,pyqt5]
- name: Test
uses: aganders3/headless-gui@v2
with:
shell: bash -el {0}
run: python -m pytest --cov llspy
- name: Coverage
uses: codecov/codecov-action@v3
deploy:
name: Deploy
needs: test
if: "success() && startsWith(github.ref, 'refs/tags/')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: install
run: |
git tag
pip install -U pip
pip install -U setuptools setuptools_scm wheel twine build
python -m build .
- name: twine check
run: twine check dist/*
- name: Build and publish
run: twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}