-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (44 loc) · 1.04 KB
/
devcontainer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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/[email protected]
with:
imageName: cmdict-devcontainer
push: never
runCmd: |
poetry run pre-commit install
poetry run pre-commit run --all-files
poetry run pytest tests/ -s