Skip to content

Commit

Permalink
CI addition work
Browse files Browse the repository at this point in the history
  • Loading branch information
davekeeshan committed Jan 22, 2025
1 parent 6e053d9 commit 0cf7a01
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 1 deletion.
63 changes: 63 additions & 0 deletions .github/workflows/test_checkin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Test urubu

on:
push:
pull_request:
schedule:
- cron: '0 1 * * 0'
jobs:
run_lint:
strategy:
fail-fast: false # So that one fail doesn't stop remaining tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pyflakes
- name: Run lint
continue-on-error: true
run: |
pyflakes urubu
build_code_linux:

strategy:
fail-fast: false # So that one fail doesn't stop remaining tests
matrix:
python-version: ["3.8", "3.9", "pypy-3.9", "3.10", "pypy-3.10", "3.11", "3.12"]
runs-on: ubuntu-latest
needs: [run_lint]

steps:
- uses: actions/checkout@v3
- name: Report Environment
run: |
echo "Runing tests with env set to : ${{ matrix.target }}"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .
- name: Run Tests
run: |
cd urubu/tests ; py.test
pypy_release:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
needs: [build_code_linux, build_code_windows]
steps:
- uses: actions/checkout@v3
- name: Make PyPi dist release
run: make dist
- name: Publish Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup

requires = ['jinja2 >= 2.10', 'pygments',
'markdown < 3.0', 'pyyaml', 'beautifulsoup4']
'markdown', 'pyyaml', 'beautifulsoup4', 'pytest', 'sh']

entry_points = {
'console_scripts': [
Expand Down

0 comments on commit 0cf7a01

Please sign in to comment.