Skip to content

Commit

Permalink
Run tests with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmior committed May 16, 2024
1 parent ca4e755 commit c7a7da8
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI
on: [push, pull_request]
jobs:
pre_job:
name: Check duplicate
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@12aca0a884f6137d619d6a8a09fcc3406ced5281
with:
cancel_others: true
concurrent_skipping: same_content
do_not_skip: '["pull_request", "schedule", "workflow_dispatch"]'

build:
name: Test
needs: pre_job
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.7.2'
cache: 'pipenv'
- name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
- name: Install dependencies
run: pipenv install
- name: Run tests
run: (cd PyTest/; pipenv run pytest)

0 comments on commit c7a7da8

Please sign in to comment.