Skip to content

Commit

Permalink
add new workflow for devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
jiedxu committed Nov 1, 2023
1 parent 70ecd59 commit 1e4b374
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
- '.python-version'
- 'poetry.toml'
- '.github/workflows/cd.yml'
- '.github/workflows/devcontainer.yml'
- '.devcontainer/**'
pull_request:
branches: [ master ]
paths-ignore:
Expand All @@ -21,6 +23,8 @@ on:
- '.python-version'
- 'poetry.toml'
- '.github/workflows/cd.yml'
- '.github/workflows/devcontainer.yml'
- '.devcontainer/**'
workflow_dispatch:
schedule:
- cron: '30 5 * * 1'
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: devcontainer

on:
push:
branches: [ master ]
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
- 'codecov.yml'
- '.python-version'
- 'poetry.toml'
- '.github/workflows/cd.yml'
- '.github/workflows/ci.yml'
pull_request:
branches: [ master ]
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
- 'codecov.yml'
- '.python-version'
- 'poetry.toml'
- '.github/workflows/cd.yml'
- '.github/workflows/ci.yml'
workflow_dispatch:
schedule:
- cron: '30 5 * * 1'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
unit-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@master
- name: Run unit tests in dev container
uses: devcontainers/ci@v0.3
with:
imageName: cmdict-devcontainer
push: never
runCmd: |
pytest tests/ -s

0 comments on commit 1e4b374

Please sign in to comment.