Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmacavaney committed Mar 9, 2025
1 parent 7ea099a commit eeb6e2e
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 114 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Upload Python Package

on:
release:
types: [created]

jobs:
pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: install-deps
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: build
run: |
python -m build
- name: upload
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/*
55 changes: 0 additions & 55 deletions .github/workflows/push.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/release.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: test

on:
push: {branches: [master]} # pushes to master
pull_request: {} # all PRs

jobs:
pytest:
strategy:
matrix:
python-version: ['3.8', '3.12']
os: ['ubuntu-latest', 'windows-latest', 'macOs-13']

runs-on: ${{ matrix.os }}
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Dependencies
run: |
pip install --upgrade -r requirements.txt -r requirements-test.txt
pip install -e .
- name: Unit Test
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macOs-latest'
run: |
pip install pytest
pytest test/util.py test/metadata.py test/integration/dummy.py test/integration/vaswani.py test/formats/ test/test_defaulttext.py
- name: Unit Test (Windows)
if: matrix.os == 'windows-latest'
shell: cmd
run: |
pip install pytest
pytest test\util.py test\metadata.py test\integration\dummy.py test\integration\vaswani.py test\formats\ test\test_defaulttext.py
env:
PATH: 'C:/Program Files/zlib/bin/'
11 changes: 0 additions & 11 deletions .github/workflows/verify_downloads.yml

This file was deleted.

0 comments on commit eeb6e2e

Please sign in to comment.