Skip to content

Commit

Permalink
Add alls-greens configuration (#166)
Browse files Browse the repository at this point in the history
* Add alls-greens configuration

* Make it OK if test directory already exists to avoid race
  • Loading branch information
di authored Nov 6, 2022
1 parent 244801a commit 6172664
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,14 @@ jobs:
run: python -m pip install tox
- name: Run tests
run: python -m tox -e ${{ matrix.toxenv }}

check:
if: always()
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def isolate(tmpdir):

# Create a directory to use as our home location.
home_dir = os.path.join(str(tmpdir), "home")
os.makedirs(home_dir)
os.makedirs(home_dir, exist_ok=True)

# Set our home directory to our temporary directory, this should force
# all of our relative configuration files to be read from here instead
Expand Down

0 comments on commit 6172664

Please sign in to comment.