Skip to content

Commit

Permalink
Merge pull request #38 from ihmeuw/bug/pin_pymc_version
Browse files Browse the repository at this point in the history
ENH: add github workflows
  • Loading branch information
aflaxman authored Apr 11, 2023
2 parents eaf9e51 + ba07e3a commit b2c9cce
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build
on: [push, pull_request, workflow_dispatch]

jobs:
build:
runs-on: linux
strategy:
matrix:
python-version: ["3.6"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Print environment values
run: |
python --version
cat $GITHUB_ENV
- name: Update pip
run: |
python -m pip install --upgrade pip
- name: Install dependencies
run: |
pip install .
- name: Test
run: |
pytest ./tests
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: deploy

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.6"
- name: Install dependencies
run: |
python --version
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*

0 comments on commit b2c9cce

Please # to comment.