Skip to content

Commit

Permalink
Create main.yml with build stage.
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahGale authored Jan 10, 2024
1 parent 757486d commit 202132e
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Package Test and Deploy

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: set up python ${{ matrix.python-version }}
uses: action setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build $${{ matrix.python-version }}
- run: pip install --upgrade pip build
- run: pip instal -r requirements/common.txt
- run: python -m build --sdist --wheel
- run: pip install .
- run: pip uninstall -y montepy
- run: pip install --user dist/*.whl
- run: pip uninstall -y montepy
- run: pip install --user dist/*.tar.gz
- run: pip install --user montepy[test]
- run: pip install --user montepy[doc]
- run: ip freeze
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build
path: dist/*


0 comments on commit 202132e

Please sign in to comment.