Skip to content

Commit 4e3cc8d

Browse files
committed
Deactivate CI workflows (commented out all jobs and triggers)
1 parent 22c59e2 commit 4e3cc8d

1 file changed

Lines changed: 120 additions & 149 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 120 additions & 149 deletions
Original file line numberDiff line numberDiff line change
@@ -1,149 +1,120 @@
1-
name: ci
2-
3-
on:
4-
push:
5-
branches: [main, develop]
6-
pull_request_target:
7-
types: [assigned, opened, synchronize, reopened]
8-
9-
env:
10-
REGISTRY: ghcr.io
11-
12-
jobs:
13-
setup:
14-
runs-on: ubuntu-latest
15-
outputs:
16-
ci_name_ref_slug: ${{ steps.set_env.outputs.ci_name_ref_slug }}
17-
image_name: ${{ steps.set_env.outputs.image_name }}
18-
steps:
19-
- uses: FranzDiebold/github-env-vars-action@v2
20-
- name: Generate global env vars
21-
id: set_env
22-
run: |
23-
echo "::set-output name=ci_name_ref_slug::$CI_REF_NAME_SLUG"
24-
echo "::set-output name=image_name::$REGISTRY/$CI_REPOSITORY_OWNER_SLUG/$CI_REPOSITORY_NAME_SLUG"
25-
26-
build:
27-
needs: [setup]
28-
runs-on: ubuntu-latest
29-
30-
permissions:
31-
contents: read
32-
packages: write
33-
34-
steps:
35-
- name: Checkout
36-
uses: actions/checkout@v3
37-
if: ${{ github.event_name == 'push' }}
38-
39-
- name: Checkout
40-
uses: actions/checkout@v3
41-
if: ${{ github.event_name == 'pull_request_target' }}
42-
with:
43-
ref: ${{ github.event.pull_request.head.sha }}
44-
45-
- name: Set up Docker Buildx
46-
id: buildx
47-
uses: docker/setup-buildx-action@v2
48-
with:
49-
install: true
50-
51-
- name: Log in to the Container registry
52-
uses: docker/login-action@v2
53-
with:
54-
registry: ${{ env.REGISTRY }}
55-
username: ${{ github.actor }}
56-
password: ${{ secrets.GITHUB_TOKEN }}
57-
58-
- name: Extract metadata (tags, labels) for Docker
59-
id: meta
60-
uses: docker/metadata-action@v4
61-
with:
62-
images: ${{ needs.setup.outputs.image_name }}
63-
64-
# - name: Build and push Docker image
65-
# uses: docker/build-push-action@v3
66-
# with:
67-
# context: .
68-
# file: dev.Dockerfile
69-
# push: true
70-
# tags: ${{ steps.meta.outputs.tags }}
71-
# labels: ${{ steps.meta.outputs.labels }}
72-
# cache-from: type=gha
73-
# cache-to: type=gha,mode=max
74-
75-
- name: Build and push test Docker image
76-
uses: docker/build-push-action@v4
77-
with:
78-
context: .
79-
file: dev.Dockerfile
80-
push: true
81-
target: test-image
82-
tags: "${{ needs.setup.outputs.image_name }}/test:${{ github.sha }},${{ needs.setup.outputs.image_name }}/test:${{ needs.setup.outputs.ci_name_ref_slug }}"
83-
labels: ${{ steps.meta.outputs.labels }}
84-
cache-from: type=gha
85-
cache-to: type=gha,mode=max
86-
87-
- name: Build and push tool Docker image
88-
uses: docker/build-push-action@v4
89-
with:
90-
context: .
91-
file: tool.Dockerfile
92-
push: true
93-
tags: "${{ needs.setup.outputs.image_name }}/tool:${{ github.sha }},${{ needs.setup.outputs.image_name }}/tool:${{ needs.setup.outputs.ci_name_ref_slug }}"
94-
labels: ${{ steps.meta.outputs.labels }}
95-
cache-from: type=gha
96-
cache-to: type=gha,mode=max
97-
98-
style:
99-
needs: [build]
100-
runs-on: ubuntu-latest
101-
container:
102-
image: ghcr.io/${{ github.repository_owner }}/qdax/tool:${{ github.sha }}
103-
credentials:
104-
username: ${{ github.actor }}
105-
password: ${{ secrets.GITHUB_TOKEN }}
106-
107-
steps:
108-
- name: Checkout
109-
uses: actions/checkout@v3
110-
if: ${{ github.event_name == 'push' }}
111-
112-
- name: Checkout
113-
uses: actions/checkout@v3
114-
if: ${{ github.event_name == 'pull_request_target' }}
115-
with:
116-
ref: ${{ github.event.pull_request.head.sha }}
117-
118-
- name: Run pre-commits
119-
run: |
120-
git config --global --add safe.directory $GITHUB_WORKSPACE
121-
pre-commit run --all-files
122-
123-
tests:
124-
needs: [build]
125-
runs-on: ubuntu-latest
126-
container:
127-
image: ghcr.io/${{ github.repository_owner }}/qdax/test:${{ github.sha }}
128-
credentials:
129-
username: ${{ github.actor }}
130-
password: ${{ secrets.GITHUB_TOKEN }}
131-
132-
steps:
133-
- name: Checkout
134-
uses: actions/checkout@v3
135-
if: ${{ github.event_name == 'push' }}
136-
137-
- name: Checkout
138-
uses: actions/checkout@v3
139-
if: ${{ github.event_name == 'pull_request_target' }}
140-
with:
141-
ref: ${{ github.event.pull_request.head.sha }}
142-
143-
- name: Run pytests
144-
run: |
145-
coverage run -m pytest -vv tests
146-
coverage xml
147-
148-
- name: Upload Coverage to Codecov
149-
uses: codecov/codecov-action@v2
1+
# name: ci
2+
#
3+
# on:
4+
# push:
5+
# branches: [main, develop]
6+
# pull_request_target:
7+
# types: [assigned, opened, synchronize, reopened]
8+
#
9+
# env:
10+
# REGISTRY: ghcr.io
11+
#
12+
# jobs:
13+
# setup:
14+
# runs-on: ubuntu-latest
15+
# outputs:
16+
# ci_name_ref_slug: ${{ steps.set_env.outputs.ci_name_ref_slug }}
17+
# image_name: ${{ steps.set_env.outputs.image_name }}
18+
# steps:
19+
# - uses: FranzDiebold/github-env-vars-action@v2
20+
# - name: Generate global env vars
21+
# id: set_env
22+
# run: |
23+
# echo "::set-output name=ci_name_ref_slug::$CI_REF_NAME_SLUG"
24+
# echo "::set-output name=image_name::$REGISTRY/$CI_REPOSITORY_OWNER_SLUG/$CI_REPOSITORY_NAME_SLUG"
25+
# build:
26+
# needs: [setup]
27+
# runs-on: ubuntu-latest
28+
# permissions:
29+
# contents: read
30+
# packages: write
31+
# steps:
32+
# - name: Checkout
33+
# uses: actions/checkout@v3
34+
# if: ${{ github.event_name == 'push' }}
35+
# - name: Checkout
36+
# uses: actions/checkout@v3
37+
# if: ${{ github.event_name == 'pull_request_target' }}
38+
# with:
39+
# ref: ${{ github.event.pull_request.head.sha }}
40+
# - name: Set up Docker Buildx
41+
# id: buildx
42+
# uses: docker/setup-buildx-action@v2
43+
# with:
44+
# install: true
45+
# - name: Log in to the Container registry
46+
# uses: docker/login-action@v2
47+
# with:
48+
# registry: ${{ env.REGISTRY }}
49+
# username: ${{ github.actor }}
50+
# password: ${{ secrets.GITHUB_TOKEN }}
51+
# - name: Extract metadata (tags, labels) for Docker
52+
# id: meta
53+
# uses: docker/metadata-action@v4
54+
# with:
55+
# images: ${{ needs.setup.outputs.image_name }}
56+
# - name: Build and push test Docker image
57+
# uses: docker/build-push-action@v4
58+
# with:
59+
# context: .
60+
# file: dev.Dockerfile
61+
# push: true
62+
# target: test-image
63+
# tags: "${{ needs.setup.outputs.image_name }}/test:${{ github.sha }},${{ needs.setup.outputs.image_name }}/test:${{ needs.setup.outputs.ci_name_ref_slug }}"
64+
# labels: ${{ steps.meta.outputs.labels }}
65+
# cache-from: type=gha
66+
# cache-to: type=gha,mode=max
67+
# - name: Build and push tool Docker image
68+
# uses: docker/build-push-action@v4
69+
# with:
70+
# context: .
71+
# file: tool.Dockerfile
72+
# push: true
73+
# tags: "${{ needs.setup.outputs.image_name }}/tool:${{ github.sha }},${{ needs.setup.outputs.image_name }}/tool:${{ needs.setup.outputs.ci_name_ref_slug }}"
74+
# labels: ${{ steps.meta.outputs.labels }}
75+
# cache-from: type=gha
76+
# cache-to: type=gha,mode=max
77+
# style:
78+
# needs: [build]
79+
# runs-on: ubuntu-latest
80+
# container:
81+
# image: ghcr.io/${{ github.repository_owner }}/qdax/tool:${{ github.sha }}
82+
# credentials:
83+
# username: ${{ github.actor }}
84+
# password: ${{ secrets.GITHUB_TOKEN }}
85+
# steps:
86+
# - name: Checkout
87+
# uses: actions/checkout@v3
88+
# if: ${{ github.event_name == 'push' }}
89+
# - name: Checkout
90+
# uses: actions/checkout@v3
91+
# if: ${{ github.event_name == 'pull_request_target' }}
92+
# with:
93+
# ref: ${{ github.event.pull_request.head.sha }}
94+
# - name: Run pre-commits
95+
# run: |
96+
# git config --global --add safe.directory $GITHUB_WORKSPACE
97+
# pre-commit run --all-files
98+
# tests:
99+
# needs: [build]
100+
# runs-on: ubuntu-latest
101+
# container:
102+
# image: ghcr.io/${{ github.repository_owner }}/qdax/test:${{ github.sha }}
103+
# credentials:
104+
# username: ${{ github.actor }}
105+
# password: ${{ secrets.GITHUB_TOKEN }}
106+
# steps:
107+
# - name: Checkout
108+
# uses: actions/checkout@v3
109+
# if: ${{ github.event_name == 'push' }}
110+
# - name: Checkout
111+
# uses: actions/checkout@v3
112+
# if: ${{ github.event_name == 'pull_request_target' }}
113+
# with:
114+
# ref: ${{ github.event.pull_request.head.sha }}
115+
# - name: Run pytests
116+
# run: |
117+
# coverage run -m pytest -vv tests
118+
# coverage xml
119+
# - name: Upload Coverage to Codecov
120+
# uses: codecov/codecov-action@v2

0 commit comments

Comments
 (0)