Skip to content

Commit 32c5ea0

Browse files
committed
fix: new CI
1 parent ef76d3d commit 32c5ea0

File tree

4 files changed

+30
-12
lines changed

4 files changed

+30
-12
lines changed

.github/workflows/pr-with-task.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ jobs:
1313
- name: Setup Taskfile
1414
uses: arduino/setup-task@v2
1515
with:
16-
version: 3.x
17-
repo-token: ${{ secrets.GITHUB_TOKEN }}
16+
version: 3.40.0
17+
18+
- name: Install dependencies
19+
run: task install
1820

1921
- name: Task start
2022
run: task start &
@@ -32,8 +34,7 @@ jobs:
3234
- name: Setup Taskfile
3335
uses: arduino/setup-task@v2
3436
with:
35-
version: 3.x
36-
repo-token: ${{ secrets.GITHUB_TOKEN }}
37+
version: 3.40.0
3738

3839
- name: Task lint
3940
run: task lint
@@ -48,8 +49,7 @@ jobs:
4849
- name: Setup Taskfile
4950
uses: arduino/setup-task@v2
5051
with:
51-
version: 3.x
52-
repo-token: ${{ secrets.GITHUB_TOKEN }}
52+
version: 3.40.0
5353

5454
- name: Task test
5555
run: task test

mise.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ pycountry==24.6.1
3838
markdown==3.7
3939
markupsafe==2.1.5
4040
coverage==7.10.6
41+
flake8==7.3.0
42+
black==25.1.0

taskfile.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,20 @@ vars:
88

99
env:
1010
PORT: 8001
11+
PYTHON_VERSION: "3.10"
12+
NODE_VERSION: "20"
1113
PATH: "{{ .VENV_BIN }}:$PATH"
1214

1315
dotenv: [".env", ".env.local"]
1416

1517
# Available tasks:
1618
# - start (default)
19+
# - install
1720
# - clean
1821
# - test
1922
# - lint
2023
# - format
21-
24+
# - build
2225
tasks:
2326
default:
2427
cmds:
@@ -31,6 +34,13 @@ tasks:
3134
cmds:
3235
- PATH="{{ .VENV_BIN }}:$PATH" yarn start
3336

37+
install:
38+
deps:
39+
- install-python
40+
- install-yarn
41+
cmds:
42+
- echo "Installation complete"
43+
3444
clean:
3545
cmds:
3646
- rm -rf static/css static/js/dist node_modules {{ .VENV_DIR }} .task
@@ -62,6 +72,13 @@ tasks:
6272
- PATH="{{ .VENV_BIN }}:$PATH" yarn format-prettier
6373
- npx stylelint --fix static/**/*.scss
6474

75+
build:
76+
deps:
77+
- install-python
78+
- install-yarn
79+
cmds:
80+
- PATH="{{ .VENV_BIN }}:$PATH" yarn build
81+
6582
# Custom tools versioning setup (mise, python, node, etc.)
6683
setup-mise:
6784
internal: true
@@ -77,7 +94,8 @@ tasks:
7794
deps:
7895
- setup-mise
7996
cmds:
80-
- mise install
97+
- mise install python@{{ .PYTHON_VERSION }}
98+
- mise install node@{{ .NODE_VERSION }}
8199

82100
# Python virtual environment
83101
venv:
@@ -88,7 +106,8 @@ tasks:
88106
status:
89107
- ! -f {{ .PYTHON_BIN }}
90108
cmds:
91-
- python3 -m venv .venv
109+
- mise exec python@{{ .PYTHON_VERSION }} -- python3 -m venv .venv
110+
- echo "Using Python $({{ .PYTHON_BIN }} --version)"
92111

93112
install-python:
94113
internal: true

0 commit comments

Comments
 (0)