Skip to content

Bump pygments from 2.16.1 to 2.17.2 #19

Bump pygments from 2.16.1 to 2.17.2

Bump pygments from 2.16.1 to 2.17.2 #19

Workflow file for this run

name: "Python Release"
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types: [created]
jobs:
unit-tests:
strategy:
matrix:
py: ["3.9", "3.10", "3.11", "3.x"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.py }}
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install pypa/build
run: >-
python3 -m
pip install
build hatchling
--user
- name: Make VERSION
run: python make_version.py
- name: install self
run: pip install -e .
- name: Unit Tests
run: pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Style Guide
run: flake8
build-and-publish:
name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI
needs: unit-tests
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"
echo "${{github.ref}}"
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Make VERSION
run: python make_version.py
- name: Build a binary wheel and a source tarball
run: >-
python3 -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution πŸ“¦ to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
- name: Publish distribution πŸ“¦ to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}