Skip to content

Commit

Permalink
Add pysen-test action (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonprosoft authored May 14, 2022
1 parent 4c41230 commit 3bf7ba3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/actions/pysen-test/Dockerfile
11 changes: 11 additions & 0 deletions .github/actions/pysen-test/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 'pysen-test'
description: 'Run pysen test'
runs:
using: 'docker'
image: 'Dockerfile'
entrypoint: '/bin/bash'
args:
- '-c'
# Changing the ownership is required. See the following link for more details:
# https://github.blog/2022-04-12-git-security-vulnerability-announced/
- "chown -R $(id -u):$(id -g) . && tox --parallel"
7 changes: 2 additions & 5 deletions .github/workflows/pysen-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ jobs:
name: Run pysen-test
runs-on: ubuntu-20.04
timeout-minutes: 15
container:
image: quay.io/pysen/pysen-test@sha256:e6ecc68fda873bf269de16cbed734a627232b88cbdf7054c0520a31a57439738
steps:
- uses: actions/checkout@v2
with:
lfs: false
path: ${{ env.CHECKOUT_PATH }}
- name: Run tox
run: |
tox --parallel
- name: Run test
uses: ./.github/actions/pysen-test/

0 comments on commit 3bf7ba3

Please sign in to comment.