tangled
alpha
login
or
join now
cuducos.me
/
triathlon-live-calendar
0
fork
atom
๐ Calendar file generator for triathlonlive.tv upcoming events
triathlon-live-calendar.fly.dev
0
fork
atom
overview
issues
pulls
pipelines
Migrates to Tangled
Eduardo Cuducos
1 month ago
a2d31fbe
824c51c0
0/1
tests.yaml
failed
12s
+24
-32
4 changed files
expand all
collapse all
unified
split
.github
FUNDING.yml
workflows
deploy.yml
tests.yml
.tangled
workflows
tests.yaml
-1
.github/FUNDING.yml
···
1
1
-
github: [cuducos]
-16
.github/workflows/deploy.yml
···
1
1
-
name: Deploy
2
2
-
on:
3
3
-
push:
4
4
-
branches:
5
5
-
- main
6
6
-
jobs:
7
7
-
deploy:
8
8
-
name: Deploy app
9
9
-
runs-on: ubuntu-latest
10
10
-
concurrency: deploy-group
11
11
-
steps:
12
12
-
- uses: actions/checkout@v4
13
13
-
- uses: superfly/flyctl-actions/setup-flyctl@master
14
14
-
- run: flyctl deploy --remote-only
15
15
-
env:
16
16
-
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
-15
.github/workflows/tests.yml
···
1
1
-
name: Tests
2
2
-
on: [push, pull_request]
3
3
-
jobs:
4
4
-
build:
5
5
-
runs-on: ubuntu-latest
6
6
-
steps:
7
7
-
- uses: actions/checkout@v4
8
8
-
- name: Set up Python
9
9
-
uses: actions/setup-python@v4
10
10
-
with:
11
11
-
python-version: "3.12"
12
12
-
- name: Install `uv`
13
13
-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
14
14
-
- name: Run tests
15
15
-
run: uv run pytest
+24
.tangled/workflows/tests.yaml
···
1
1
+
when:
2
2
+
- event: ["push", "pull_request"]
3
3
+
branch: ["main"]
4
4
+
5
5
+
engine: "nixery"
6
6
+
7
7
+
dependencies:
8
8
+
nixpkgs:
9
9
+
- python314
10
10
+
- uv
11
11
+
- libxml2
12
12
+
- libxslt
13
13
+
- pkg-config
14
14
+
- flyctl
15
15
+
16
16
+
steps:
17
17
+
- name: Tests
18
18
+
command: uv run pytest
19
19
+
20
20
+
- name: Deploy
21
21
+
command: |
22
22
+
if [ "$TANGLED_REF_NAME" = "main" ] && [ -n "$TANGLED_COMMIT_SHA" ]; then
23
23
+
flyctl deploy --remote-only
24
24
+
fi