From 202132e9d838d36406d49e56b212e6dcd6baecbe Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 08:47:49 -0600 Subject: [PATCH 01/49] Create main.yml with build stage. --- .github/workflows/main.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..76b68307 --- /dev/null +++ b/.github/workflows/main.yml @@ -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/* + + From bbbd8631afa7b90415a97098e8741c89f9c11706 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 08:49:41 -0600 Subject: [PATCH 02/49] Fixed typo in action --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 76b68307..a2314142 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: set up python ${{ matrix.python-version }} - uses: action setup-python@v4 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Build $${{ matrix.python-version }} From 790b97c3d0a4bbe00d5fbf045c0ea20e71944d5c Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 08:53:08 -0600 Subject: [PATCH 03/49] Fixed steps syntax --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a2314142..f2524e23 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,6 @@ jobs: uses: actions/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 @@ -26,7 +25,7 @@ jobs: - run: pip install --user dist/*.tar.gz - run: pip install --user montepy[test] - run: pip install --user montepy[doc] - - run: ip freeze + - run: pip freeze - name: Upload build artifacts uses: actions/upload-artifact@v3 with: From c816dbf9aeb3c3e51a70358a47e72eff39bbd35c Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 08:54:18 -0600 Subject: [PATCH 04/49] Fixed more typos --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f2524e23..e43cc622 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - run: pip install --upgrade pip build - - run: pip instal -r requirements/common.txt + - run: pip install -r requirements/common.txt - run: python -m build --sdist --wheel - run: pip install . - run: pip uninstall -y montepy From 150fce4fe99aff1fb8450bb55740da0ffb314628 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 08:59:12 -0600 Subject: [PATCH 05/49] Tried add simple test --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e43cc622..756c1245 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,5 +31,26 @@ jobs: with: name: build path: dist/* + + test: + 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: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - run: pip install --user requirements/dev.txt + - run: python -m pytest --junitxml=test_report.xml + - name: Upload test report + uses: actions/upload-artifact@v3 + with: + name: test + path: test_report.xml + From 2a773fea4ddecb8c58f56876e541eaf7ab8da823 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 09:01:11 -0600 Subject: [PATCH 06/49] Tried to fix pip install --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 756c1245..17c42dc7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,7 +44,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - run: pip install --user requirements/dev.txt + - run: pip install --user -r requirements/dev.txt - run: python -m pytest --junitxml=test_report.xml - name: Upload test report uses: actions/upload-artifact@v3 From 19354e67f08d5371b4e4ad5291f2a0b0c8a1bb6a Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 09:14:50 -0600 Subject: [PATCH 07/49] added coverage --- .github/workflows/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 17c42dc7..f97357c7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,12 +45,19 @@ jobs: with: python-version: ${{ matrix.python-version }} - run: pip install --user -r requirements/dev.txt - - run: python -m pytest --junitxml=test_report.xml + - run: coverage run -m pytest --junitxml=test_report.xml + - run: coverage report + - run: coverage xml - name: Upload test report uses: actions/upload-artifact@v3 with: name: test path: test_report.xml + - name: Upload coverage report + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage.xml From 06371d30a06e9b595a97c9d7ef652016a259c230 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 09:24:20 -0600 Subject: [PATCH 08/49] Started deploy with building pages --- .github/workflows/deploy.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..28839985 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,18 @@ +on: + push: + # branches: + # - main + pull_request: + # branches: + #- main +jobs: + deploy-pages: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3.8 + - run: pip install --user montepy[doc] + - run: cd doc + - run: make html From 2898bb189be46148ef5c97f895d6322f948ab803 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 09:27:27 -0600 Subject: [PATCH 09/49] Update deploy.yml --- .github/workflows/deploy.yml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 28839985..7a1b1ef0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,18 +1,13 @@ on: - push: - # branches: - # - main - pull_request: - # branches: - #- main + [push] jobs: deploy-pages: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 - with: - python-version: 3.8 - - run: pip install --user montepy[doc] - - run: cd doc - - run: make html + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3.8 + - run: pip install --user montepy[doc] + - run: cd doc + - run: make html From 6108ee5850696452afec0d52ed1512b18ebc668a Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 09:28:53 -0600 Subject: [PATCH 10/49] Update deploy.yml --- .github/workflows/deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7a1b1ef0..6807c3e7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,3 +1,4 @@ +name: Deploy pages and pypi on: [push] jobs: From 11e1606c8b73b39fc7e84aedbfe89dfef293ee50 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 09:31:27 -0600 Subject: [PATCH 11/49] Debugging failures --- .github/workflows/deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6807c3e7..bc28f6a0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,4 +11,5 @@ jobs: python-version: 3.8 - run: pip install --user montepy[doc] - run: cd doc + - run: ls - run: make html From 69042c5afb73e74c4dcd2fad50b327a2025ba3ff Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 09:32:50 -0600 Subject: [PATCH 12/49] Update deploy.yml --- .github/workflows/deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bc28f6a0..fc19e5b0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,5 +11,4 @@ jobs: python-version: 3.8 - run: pip install --user montepy[doc] - run: cd doc - - run: ls - - run: make html + make html From 7212bd814e74e70ee1b5e7f77c362cacf7032ffb Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 09:34:45 -0600 Subject: [PATCH 13/49] trying to get cd to stick --- .github/workflows/deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fc19e5b0..22bcf790 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,5 +10,4 @@ jobs: with: python-version: 3.8 - run: pip install --user montepy[doc] - - run: cd doc - make html + - run: cd doc && make html From b10116c97f2034a5daf944c906dc5edca57fbffb Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 09:40:59 -0600 Subject: [PATCH 14/49] Trying to deploy to pages now --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f97357c7..41e6978b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -58,6 +58,28 @@ jobs: with: name: coverage path: coverage.xml + + deploy-pages: + needs: [build, test] + + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3.8 + - run: pip install --user montepy[doc] + - run: cd doc && make html + - uses: actions/deploy-pages@v4 + with: + path: doc/build/html From 67883243442c2c97bfa59e72d845f573aceaa676 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 09:41:37 -0600 Subject: [PATCH 15/49] Delete .github/workflows/deploy.yml --- .github/workflows/deploy.yml | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 22bcf790..00000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Deploy pages and pypi -on: - [push] -jobs: - deploy-pages: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 - with: - python-version: 3.8 - - run: pip install --user montepy[doc] - - run: cd doc && make html From f33fc6b24d0086be319492154f06c18e70f838b6 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 09:46:20 -0600 Subject: [PATCH 16/49] Added doc testing. --- .github/workflows/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 41e6978b..5b95d979 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,6 +59,24 @@ jobs: name: coverage path: coverage.xml + doc-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: set up python 3.8 + uses: actions/setup-python@v4 + with: + python-version: 3.8 + - run: pip install --user -r requirements/dev.txt + - run: sphinx-build doc/source/ doc/build/ -W --keep-going -E + - run: sphinx-build -b html doc/source/ doc/build/html + - uses: actions/upload-artifact@v3 + with: + name: test + path: test_report.xml + + deploy-pages: needs: [build, test] From 9a855b37d4a26f46be2d947b66dc400a0e57413b Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 09:48:10 -0600 Subject: [PATCH 17/49] Trying to fix montepy dep for doc --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5b95d979..484c9afb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -60,6 +60,7 @@ jobs: path: coverage.xml doc-test: + needs: [build] runs-on: ubuntu-latest steps: From 3f35a59c3e5ee4412d2e73abe37cbddee66b6372 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 09:50:48 -0600 Subject: [PATCH 18/49] Update main.yml --- .github/workflows/main.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 484c9afb..9241dbff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -69,17 +69,29 @@ jobs: uses: actions/setup-python@v4 with: python-version: 3.8 - - run: pip install --user -r requirements/dev.txt + - run: pip install montepy[doc] - run: sphinx-build doc/source/ doc/build/ -W --keep-going -E - run: sphinx-build -b html doc/source/ doc/build/html - uses: actions/upload-artifact@v3 with: - name: test - path: test_report.xml + name: website + path: doc/build/html + + format-test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: set up python 3.8 + uses: actions/setup-python@v4 + with: + python-version: 3.8 + - run: pip install --user -r requirements/dev.txt + - run: black --check montepy/ tests/ deploy-pages: - needs: [build, test] + needs: [build, test, doc-test, format-test] permissions: pages: write # to deploy to Pages From a5ffdff28a1ba9a02feb9c5b29d64693bf6613aa Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 09:54:30 -0600 Subject: [PATCH 19/49] Tried to give git access to private repo --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9241dbff..16af02ad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -60,7 +60,6 @@ jobs: path: coverage.xml doc-test: - needs: [build] runs-on: ubuntu-latest steps: @@ -102,6 +101,10 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: + - name: Configure git + env: + TOKEN: ${{ secrets.ACCESS_TOKEN }} + run: git config --global url."https://${TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/" - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: From 819a05d882c79b5da6cd297717f2ada4af634cca Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 10:02:41 -0600 Subject: [PATCH 20/49] Tried to fix permissions and added deploy pypi --- .github/workflows/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 16af02ad..d178b74f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -93,6 +93,7 @@ jobs: needs: [build, test, doc-test, format-test] permissions: + contents: read pages: write # to deploy to Pages id-token: write # to verify the deployment originates from an appropriate source @@ -114,6 +115,18 @@ jobs: - uses: actions/deploy-pages@v4 with: path: doc/build/html + + deploy-pypi: + needs: [deploy-pages] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3.8 + - run: pip install --user build + - run: python -m build --sdist --wheel . + From 2eaa938d5140fa4426f46ad84055a24edf5d3211 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 10:12:31 -0600 Subject: [PATCH 21/49] Fixed uploading tar ball --- .github/workflows/main.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d178b74f..459c5e25 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -112,9 +112,13 @@ jobs: python-version: 3.8 - run: pip install --user montepy[doc] - run: cd doc && make html + - run: tar -czf deploy-pages.tar.gz doc/build/html + - uses: actions/upload-artifact@v3 + with: + path: deploy-pages.tar.gz - uses: actions/deploy-pages@v4 with: - path: doc/build/html + path: deploy-pages.tar.gz deploy-pypi: needs: [deploy-pages] From f7e8d96623cd71157cc37d6d98b4ca6af045ea24 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 10:15:07 -0600 Subject: [PATCH 22/49] Fixed deploy pages --- .github/workflows/main.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 459c5e25..890c7b87 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -117,8 +117,6 @@ jobs: with: path: deploy-pages.tar.gz - uses: actions/deploy-pages@v4 - with: - path: deploy-pages.tar.gz deploy-pypi: needs: [deploy-pages] From cf30e752e64b6eaf2bfb3423d0d9d3b9af7fa3f3 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 10:18:13 -0600 Subject: [PATCH 23/49] Trying to get artifacts happy --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 890c7b87..c497e1c1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -113,7 +113,7 @@ jobs: - run: pip install --user montepy[doc] - run: cd doc && make html - run: tar -czf deploy-pages.tar.gz doc/build/html - - uses: actions/upload-artifact@v3 + - uses: actions/artifact@v4 with: path: deploy-pages.tar.gz - uses: actions/deploy-pages@v4 From 2e7aa7e984b4aea3fe6c8089eb78e49927edf0fc Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 10:30:42 -0600 Subject: [PATCH 24/49] Update main.yml --- .github/workflows/main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c497e1c1..a106273b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -112,11 +112,9 @@ jobs: python-version: 3.8 - run: pip install --user montepy[doc] - run: cd doc && make html - - run: tar -czf deploy-pages.tar.gz doc/build/html - - uses: actions/artifact@v4 - with: - path: deploy-pages.tar.gz - uses: actions/deploy-pages@v4 + with: + path: doc/build/html/* deploy-pypi: needs: [deploy-pages] From 191ccb998ec3da5232baac99f61cc1d2c89f7d8d Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 10:36:08 -0600 Subject: [PATCH 25/49] I just don't know anymore --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a106273b..7ce36d21 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -112,6 +112,11 @@ jobs: python-version: 3.8 - run: pip install --user montepy[doc] - run: cd doc && make html + - run: tar -czf deploy-pages.tar.gz doc/build/html/* + - uses: actions/upload-artifact@v4 + with: + name: deploy-pages + path: deploy-pages.tar.gz - uses: actions/deploy-pages@v4 with: path: doc/build/html/* From 4ffc9f4f27f2adf98d7ad9f9ebfacffd63529e00 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 10:40:49 -0600 Subject: [PATCH 26/49] Tried upload pages-artifact --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7ce36d21..aad2c327 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -113,10 +113,10 @@ jobs: - run: pip install --user montepy[doc] - run: cd doc && make html - run: tar -czf deploy-pages.tar.gz doc/build/html/* - - uses: actions/upload-artifact@v4 + - uses: actions/upload-pages-artifact@v3 with: name: deploy-pages - path: deploy-pages.tar.gz + path: doc/build/html/* - uses: actions/deploy-pages@v4 with: path: doc/build/html/* From 5d2eab2ec650bde994fa4a5db6b049068f843841 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 10:55:54 -0600 Subject: [PATCH 27/49] Trying different path --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aad2c327..07615f10 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -116,7 +116,7 @@ jobs: - uses: actions/upload-pages-artifact@v3 with: name: deploy-pages - path: doc/build/html/* + path: doc/build/html/ - uses: actions/deploy-pages@v4 with: path: doc/build/html/* From 929b3f91484c4782b68072dda58d9ff731483059 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 10:58:51 -0600 Subject: [PATCH 28/49] Forgot to delete path --- .github/workflows/main.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 07615f10..79a488c0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -118,8 +118,6 @@ jobs: name: deploy-pages path: doc/build/html/ - uses: actions/deploy-pages@v4 - with: - path: doc/build/html/* deploy-pypi: needs: [deploy-pages] From c637b9f7b0f83fdfd49020b7049da80e060c5484 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 11:05:19 -0600 Subject: [PATCH 29/49] Trying rolling back version. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 79a488c0..f9b27f71 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -117,7 +117,7 @@ jobs: with: name: deploy-pages path: doc/build/html/ - - uses: actions/deploy-pages@v4 + - uses: actions/deploy-pages@v3 deploy-pypi: needs: [deploy-pages] From 681f84a3405a487d8136fba35d4ebe2e7c2893ea Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 11:45:26 -0600 Subject: [PATCH 30/49] Trying with adding pages config --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f9b27f71..4d073d54 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -112,11 +112,12 @@ jobs: python-version: 3.8 - run: pip install --user montepy[doc] - run: cd doc && make html + - uses: actions/configure-pages@v4 - run: tar -czf deploy-pages.tar.gz doc/build/html/* - uses: actions/upload-pages-artifact@v3 with: name: deploy-pages - path: doc/build/html/ + path: deploy-pages.tar.gz - uses: actions/deploy-pages@v3 deploy-pypi: From 629da910209f202b701f624761666f83f6694ad8 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 12:02:20 -0600 Subject: [PATCH 31/49] Pages actually wants a path. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4d073d54..19a63d9c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -117,7 +117,7 @@ jobs: - uses: actions/upload-pages-artifact@v3 with: name: deploy-pages - path: deploy-pages.tar.gz + path: doc/build/html/ - uses: actions/deploy-pages@v3 deploy-pypi: From 7133f25ea31052150fe527b090b039c29c95ed71 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 12:36:20 -0600 Subject: [PATCH 32/49] Tried splitting pages deploy into two jobs --- .github/workflows/main.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 19a63d9c..f85c4ce2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -89,14 +89,9 @@ jobs: - run: black --check montepy/ tests/ - deploy-pages: + build-pages: needs: [build, test, doc-test, format-test] - permissions: - contents: read - pages: write # to deploy to Pages - id-token: write # to verify the deployment originates from an appropriate source - environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} @@ -118,6 +113,19 @@ jobs: with: name: deploy-pages path: doc/build/html/ + + deploy-pages: + permissions: + contents: read + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + needs: build-pages + runs-on: ubuntu-latest + steps: - uses: actions/deploy-pages@v3 deploy-pypi: From 689ba4ef65fc63d4a4f43873d1ae141ea21c59ca Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 12:48:49 -0600 Subject: [PATCH 33/49] Tried naming step. --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f85c4ce2..f38739ef 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -108,7 +108,6 @@ jobs: - run: pip install --user montepy[doc] - run: cd doc && make html - uses: actions/configure-pages@v4 - - run: tar -czf deploy-pages.tar.gz doc/build/html/* - uses: actions/upload-pages-artifact@v3 with: name: deploy-pages @@ -126,7 +125,10 @@ jobs: needs: build-pages runs-on: ubuntu-latest steps: - - uses: actions/deploy-pages@v3 + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v3 + deploy-pypi: needs: [deploy-pages] From 5ad320a84e7f9a536f5c3811f04a070cd7871a01 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 14:08:11 -0600 Subject: [PATCH 34/49] Tried manually downloading artifacts. --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f38739ef..782138a9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -125,6 +125,11 @@ jobs: needs: build-pages runs-on: ubuntu-latest steps: + - run: ls -l + - uses: actions/download-artifact@v4 + with: + name: deploy-pages + - run: ls -l - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v3 From 61486d05b8e71447f286a5268483171997a382af Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 14:17:44 -0600 Subject: [PATCH 35/49] Added pypi deploy and tried being explicit --- .github/workflows/main.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 782138a9..6b096fb9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: - name: Upload build artifacts uses: actions/upload-artifact@v3 with: - name: build + name: build-$${{ matrix.python-version }} path: dist/* test: @@ -133,9 +133,14 @@ jobs: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v3 + with: + name: deploy-pages deploy-pypi: + environment: + name: test-pypi + url: https://test.pypi.org/p/montepy # Replace with your PyPI project name needs: [deploy-pages] runs-on: ubuntu-latest steps: @@ -143,8 +148,12 @@ jobs: - uses: actions/setup-python@v4 with: python-version: 3.8 - - run: pip install --user build - - run: python -m build --sdist --wheel . + - uses: actions/download-artifact@v4 + with: + name: build-3.8 + path: dist/ + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 From dd820c1d42259b43f94510581480dbef7694e50b Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 14:20:39 -0600 Subject: [PATCH 36/49] Fixed var name. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6b096fb9..82425dd2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -134,7 +134,7 @@ jobs: id: deployment uses: actions/deploy-pages@v3 with: - name: deploy-pages + artifact_name: deploy-pages deploy-pypi: From e53e2c3f6478f7a7c4b8d4d5bde16e45e4646e70 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 14:33:56 -0600 Subject: [PATCH 37/49] Try version 4 again. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 82425dd2..dc53cae7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -132,7 +132,7 @@ jobs: - run: ls -l - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v3 + uses: actions/deploy-pages@v4 with: artifact_name: deploy-pages From 4be3146fea95668a8c425922f2a10f2479a35348 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 14:38:04 -0600 Subject: [PATCH 38/49] fixed build artifact names. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dc53cae7..77c101f1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: - name: Upload build artifacts uses: actions/upload-artifact@v3 with: - name: build-$${{ matrix.python-version }} + name: build-${{ matrix.python-version }} path: dist/* test: From 1517e3764cf85b5658f27396ed1472bf67eff6fe Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 14:53:50 -0600 Subject: [PATCH 39/49] Gave up on numbered builds. --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 77c101f1..71130986 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: - name: Upload build artifacts uses: actions/upload-artifact@v3 with: - name: build-${{ matrix.python-version }} + name: build path: dist/* test: @@ -150,7 +150,7 @@ jobs: python-version: 3.8 - uses: actions/download-artifact@v4 with: - name: build-3.8 + name: build path: dist/ - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 From fe789689ad315e6988632ac0222333aa6299554c Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 14:58:19 -0600 Subject: [PATCH 40/49] I think you need to link dependent things to access artifacts. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 71130986..39452def 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -141,7 +141,7 @@ jobs: environment: name: test-pypi url: https://test.pypi.org/p/montepy # Replace with your PyPI project name - needs: [deploy-pages] + needs: [deploy-pages, build] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From eea63ef17fefbfd22243ed42628e6bb174e1aca1 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 15:02:19 -0600 Subject: [PATCH 41/49] Just give up and recreate the artifacts again. --- .github/workflows/main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 39452def..a14d0af7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -148,10 +148,8 @@ jobs: - uses: actions/setup-python@v4 with: python-version: 3.8 - - uses: actions/download-artifact@v4 - with: - name: build - path: dist/ + - run: python -m pip install build + - run: python -m build --sdist/ --wheel - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 From e0df78a6409fb65f9873de4e582451949bbcb945 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 15:03:48 -0600 Subject: [PATCH 42/49] Removed merge artifact. --- montepy/errors.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/montepy/errors.py b/montepy/errors.py index a61b73b3..f0c2464d 100644 --- a/montepy/errors.py +++ b/montepy/errors.py @@ -10,8 +10,7 @@ def __init__(self, message): class MalformedInputError(ValueError): """ - <<<<<<< HEAD - Raised when there is an error with the MCNP input not related to the parser. + Raised when there is an error with the MCNP input not related to the parser. """ def __init__(self, input, message): From 50e998df9c7b48033af26277d42059b8b0ac690d Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 15:05:59 -0600 Subject: [PATCH 43/49] Fixed flag error. --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a14d0af7..2da81c5b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -149,7 +149,7 @@ jobs: with: python-version: 3.8 - run: python -m pip install build - - run: python -m build --sdist/ --wheel + - run: python -m build --sdist --wheel - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 From 191d7c2e3b5e2ef5c8b45e55a1d935c55f03bc35 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 15:10:35 -0600 Subject: [PATCH 44/49] Helps when you read the "mandatory" warning in the guide. --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2da81c5b..c6fef841 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -142,6 +142,9 @@ jobs: name: test-pypi url: https://test.pypi.org/p/montepy # Replace with your PyPI project name needs: [deploy-pages, build] + permissions: + contents: read + id-token: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From 63293e6ab8417be64bf2e853c62a2cfaaec58560 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 16:51:14 -0600 Subject: [PATCH 45/49] actually pointed at test. --- .github/workflows/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c6fef841..d7a93886 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -155,6 +155,8 @@ jobs: - run: python -m build --sdist --wheel - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ From e9bc92d9867008a57eca0d5e06a742d9b4bd5814 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 17:00:17 -0600 Subject: [PATCH 46/49] Created normal pypi deploy process --- .github/workflows/main.yml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d7a93886..b0e8f375 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -137,7 +137,7 @@ jobs: artifact_name: deploy-pages - deploy-pypi: + deploy-test-pypi: environment: name: test-pypi url: https://test.pypi.org/p/montepy # Replace with your PyPI project name @@ -157,7 +157,25 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://test.pypi.org/legacy/ - - + + deploy-pypi: + environment: + name: pypi + url: https://pypi.org/p/montepy # Replace with your PyPI project name + needs: [deploy-pages, build] + permissions: + contents: read + id-token: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3.8 + - run: python -m pip install build + - run: python -m build --sdist --wheel + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + From d71455a03a92d789718658064e694baa8f41f330 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 17:21:45 -0600 Subject: [PATCH 47/49] Split deploy to separate workflow. --- .github/workflows/deploy.yml | 107 +++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..893a831a --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,107 @@ +name: Deploy + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + last-minute-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: set up python 3.8 + uses: actions/setup-python@v4 + with: + python-version: 3.8 + - run: pip install --user -r requirements/dev.txt + - run: python -m pytest + + build-pages: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Configure git + env: + TOKEN: ${{ secrets.ACCESS_TOKEN }} + run: git config --global url."https://${TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/" + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3.8 + - run: pip install --user montepy[doc] + - run: cd doc && make html + - uses: actions/configure-pages@v4 + - uses: actions/upload-pages-artifact@v3 + with: + name: deploy-pages + path: doc/build/html/ + + deploy-pages: + permissions: + contents: read + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + needs: [build-pages, last-minute-test] + runs-on: ubuntu-latest + steps: + - run: ls -l + - uses: actions/download-artifact@v4 + with: + name: deploy-pages + - run: ls -l + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 + with: + artifact_name: deploy-pages + + + deploy-test-pypi: + environment: + name: test-pypi + url: https://test.pypi.org/p/montepy # Replace with your PyPI project name + needs: [deploy-pages] + permissions: + contents: read + id-token: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3.8 + - run: python -m pip install build + - run: python -m build --sdist --wheel + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ + + deploy-pypi: + environment: + name: pypi + url: https://pypi.org/p/montepy # Replace with your PyPI project name + needs: [deploy-pages, deploy-test-pypi] + permissions: + contents: read + id-token: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: 3.8 + - run: python -m pip install build + - run: python -m build --sdist --wheel + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + + + From 53ad982364d47ba289086e610b5dbeed5d66ca86 Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Wed, 10 Jan 2024 17:22:31 -0600 Subject: [PATCH 48/49] Removed deploy from test --- .github/workflows/main.yml | 94 +------------------------------------- 1 file changed, 2 insertions(+), 92 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b0e8f375..d635a22b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Package Test and Deploy +name: Test package on: [push] @@ -87,95 +87,5 @@ jobs: python-version: 3.8 - run: pip install --user -r requirements/dev.txt - run: black --check montepy/ tests/ - - - build-pages: - needs: [build, test, doc-test, format-test] - - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - name: Configure git - env: - TOKEN: ${{ secrets.ACCESS_TOKEN }} - run: git config --global url."https://${TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/" - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 - with: - python-version: 3.8 - - run: pip install --user montepy[doc] - - run: cd doc && make html - - uses: actions/configure-pages@v4 - - uses: actions/upload-pages-artifact@v3 - with: - name: deploy-pages - path: doc/build/html/ - - deploy-pages: - permissions: - contents: read - pages: write # to deploy to Pages - id-token: write # to verify the deployment originates from an appropriate source - - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - needs: build-pages - runs-on: ubuntu-latest - steps: - - run: ls -l - - uses: actions/download-artifact@v4 - with: - name: deploy-pages - - run: ls -l - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 - with: - artifact_name: deploy-pages - - - deploy-test-pypi: - environment: - name: test-pypi - url: https://test.pypi.org/p/montepy # Replace with your PyPI project name - needs: [deploy-pages, build] - permissions: - contents: read - id-token: write - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 - with: - python-version: 3.8 - - run: python -m pip install build - - run: python -m build --sdist --wheel - - name: Publish distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: https://test.pypi.org/legacy/ - - deploy-pypi: - environment: - name: pypi - url: https://pypi.org/p/montepy # Replace with your PyPI project name - needs: [deploy-pages, build] - permissions: - contents: read - id-token: write - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 - with: - python-version: 3.8 - - run: python -m pip install build - - run: python -m build --sdist --wheel - - name: Publish distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - - + From 777116de720428fd1ac5141d292679b712b5871a Mon Sep 17 00:00:00 2001 From: Micah Gale Date: Thu, 11 Jan 2024 07:37:28 -0600 Subject: [PATCH 49/49] Reved version --- montepy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/montepy/__init__.py b/montepy/__init__.py index 40fed7d2..5f35202d 100644 --- a/montepy/__init__.py +++ b/montepy/__init__.py @@ -23,7 +23,7 @@ from montepy.universe import Universe import sys -__version__ = "0.2.4" +__version__ = "0.2.5dev1" # enable deprecated warnings for users if not sys.warnoptions: import os, warnings