Skip to content

Commit

Permalink
Do full test on pull request and require it before pypi push
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanatosGit committed Jan 5, 2024
1 parent d2b9352 commit f48006c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/patch.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,38 @@ jobs:
- name: test
run: python -m pytest tests

starter_preset_patcher:
runs-on: self-hosted
needs:
- build
- test

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'recursive'

- name: Create venv
run: python -m venv venv

- name: Install Python packages
run: venv/bin/python -m pip install --upgrade pip setuptools

- name: Install
run: venv/bin/python -m pip install -e .

- name: Export
run:
venv/bin/python -m open_samus_returns_rando --input-path "$SAMUS_RETURNS_PATH" --output-path export/ --input-json tests/test_files/starter_preset_patcher.json


pypi:
runs-on: 'ubuntu-latest'
needs:
- test
- starter_preset_patcher

steps:
- name: Download all the dists
Expand Down

0 comments on commit f48006c

Please sign in to comment.