Skip to content

Commit

Permalink
add workspace at job level
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobfilik committed Mar 4, 2024
1 parent 8829769 commit 0589342
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
# pull requests are a duplicate of a branch push if within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./xas-standards-api

steps:
- name: Checkout
Expand All @@ -31,7 +34,7 @@ jobs:

- name: Lint
working-directory: xas-standards-api
run: tox -e pre-commit,mypy ./xas-standards-api
run: tox -e pre-commit,mypy

test:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
Expand All @@ -48,6 +51,9 @@ jobs:
install: ".[dev]"

runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./xas-standards-api
env:
# https://github.com/pytest-dev/pytest/issues/2042
PY_IGNORE_IMPORTMISMATCH: "1"
Expand Down

0 comments on commit 0589342

Please sign in to comment.