Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passage de CircleCI vers GitHub Actions #1663

Merged
merged 93 commits into from
Sep 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
471ef77
Add github actions config
HAEKADI Aug 9, 2021
5c40bb5
Separate jobs
HAEKADI Aug 9, 2021
22cc856
Add cache
HAEKADI Aug 9, 2021
84e2ec0
Split jobs
HAEKADI Aug 9, 2021
b6b3767
Try matrix strategy
HAEKADI Aug 9, 2021
d6830cc
Test impot-revenu
HAEKADI Aug 9, 2021
ffa84df
fixup! test impot-revenu
HAEKADI Aug 9, 2021
af9e060
Add test para
HAEKADI Aug 9, 2021
c6dbd15
Fixup add test para
HAEKADI Aug 9, 2021
bc7101a
Fixup add test para
HAEKADI Aug 9, 2021
3fc419c
Add github workspace path
HAEKADI Aug 9, 2021
a879602
Add pytest
HAEKADI Aug 9, 2021
131b64b
Try seq bash
HAEKADI Aug 9, 2021
3b5b2c8
Refactor code
HAEKADI Aug 10, 2021
974f7b6
Fix refactor code
HAEKADI Aug 10, 2021
feeb64b
Test 40 jobs matrix
HAEKADI Aug 10, 2021
69d61e0
Test 10 jobs matrix
HAEKADI Aug 10, 2021
96a8c5b
Add install job
HAEKADI Aug 25, 2021
09a06e6
Try trigger actions
HAEKADI Aug 26, 2021
b17f539
Rename file
HAEKADI Aug 26, 2021
5fa19db
Add install cache
HAEKADI Aug 26, 2021
0b781b9
Add linting
HAEKADI Aug 26, 2021
ef4f3c2
Fixup add linting
HAEKADI Aug 26, 2021
0078710
Add fetch depth to checkout
HAEKADI Aug 26, 2021
5891f4d
Improve phrasing
HAEKADI Aug 26, 2021
ab73397
Delete empty lines
HAEKADI Aug 26, 2021
856b2d0
Rename jobs
HAEKADI Aug 26, 2021
05d26f6
Add api test
HAEKADI Aug 26, 2021
3f5df63
Add permission to test api script
HAEKADI Aug 26, 2021
86b76f6
Add version check test
HAEKADI Aug 26, 2021
ae0005d
Test branch
HAEKADI Aug 26, 2021
7c96bf0
Fetch tags
HAEKADI Aug 26, 2021
f1ff896
Add check for functionnal changes job
HAEKADI Aug 26, 2021
9915821
Correct master branch condition
HAEKADI Aug 26, 2021
476f0bd
Test check for functionnal changes job
HAEKADI Aug 26, 2021
79b88a9
Test check for functionnal changes job with status
HAEKADI Aug 26, 2021
9df3020
Test check for functionnal changes job with status
HAEKADI Aug 26, 2021
917cdea
Fixup test check for functionnal changes job with status
HAEKADI Aug 26, 2021
adf2fdf
Test for failure
HAEKADI Aug 26, 2021
e865832
Add deploy job
HAEKADI Aug 26, 2021
7a6ad89
Optimize deploy job
HAEKADI Aug 26, 2021
feebc25
Add multiple python versions to install
HAEKADI Aug 26, 2021
8810e0c
Add Python versions to every job
HAEKADI Aug 26, 2021
41c894e
Remove Python 3.9 from API test
HAEKADI Aug 30, 2021
5f2d882
Add master condition to deploy
HAEKADI Aug 30, 2021
71882d8
Change pytest to openfisca
HAEKADI Aug 30, 2021
b5ce3c7
Change wildcard
HAEKADI Aug 30, 2021
76b40c8
Fix missing test files
HAEKADI Aug 30, 2021
042b2c8
Activate globstar option
HAEKADI Aug 31, 2021
b1cea5e
Fix yaml tests path
HAEKADI Aug 31, 2021
5a616b9
Add CI scripts directory
HAEKADI Aug 31, 2021
69306b9
Rename CI-scripts
HAEKADI Aug 31, 2021
da469dd
Delete test file
HAEKADI Sep 1, 2021
ec06796
Add comments
HAEKADI Sep 1, 2021
51d0554
Fail job when step fails
HAEKADI Sep 1, 2021
2d4d09e
Correct comment
HAEKADI Sep 1, 2021
f0a2e2e
Update comments
HAEKADI Sep 1, 2021
292d934
Remove Python versions
HAEKADI Sep 1, 2021
8b40d50
Remove continue option
HAEKADI Sep 1, 2021
f42c657
Rename Workflow
HAEKADI Sep 1, 2021
53a19d7
Delete CircleCI config
HAEKADI Sep 1, 2021
f22a274
Move ci-scripts to github folder
HAEKADI Sep 2, 2021
74df047
Split tests with Python
HAEKADI Sep 6, 2021
4ce8eff
Add tests as env variable
HAEKADI Sep 6, 2021
1982f37
Delete ci-scripts
HAEKADI Sep 6, 2021
6f836f9
Delete split-test script
HAEKADI Sep 6, 2021
719c458
Delete install job
HAEKADI Sep 6, 2021
432df2c
Delete build-install dependency
HAEKADI Sep 6, 2021
e5a00be
Switch lint dependency to build
HAEKADI Sep 7, 2021
7f79c0f
Test super-linter
HAEKADI Sep 13, 2021
5436fc7
Revert "Test super-linter"
HAEKADI Sep 13, 2021
0a3df19
Bump version
HAEKADI Sep 13, 2021
a1472cf
Change deploy branch condition
HAEKADI Sep 14, 2021
f0c01bd
Bump version to pre-release
HAEKADI Sep 14, 2021
33ba677
Save dist as artifact for deploy
HAEKADI Sep 14, 2021
e0fc358
Debug dist folder error
HAEKADI Sep 14, 2021
b7a6a79
Debug dist folder error
HAEKADI Sep 14, 2021
72296fb
Remove debugging code
HAEKADI Sep 14, 2021
1f2850d
Remove circleci reference
HAEKADI Sep 14, 2021
0853d50
Add branch reference to cache
HAEKADI Sep 14, 2021
4f56ba9
Remove branch reference in cache
HAEKADI Sep 14, 2021
1cac541
Bump pre-release version
HAEKADI Sep 14, 2021
390af89
Update CHANGELOG
HAEKADI Sep 14, 2021
0a6dc0e
Check for artifacts in last workflow
HAEKADI Sep 14, 2021
aafd56f
Test caching dist instead of artifact
HAEKADI Sep 14, 2021
d9cc121
Bump pre-release version
HAEKADI Sep 14, 2021
bba3052
Add SSH key
HAEKADI Sep 14, 2021
a94d41e
Bump pre-release version
HAEKADI Sep 14, 2021
9121489
Refactor api deployment
HAEKADI Sep 15, 2021
9347b39
Change ssh key placement
HAEKADI Sep 15, 2021
a8cbdf9
Bump pre-release version
HAEKADI Sep 15, 2021
6cac0e5
Fix bug
HAEKADI Sep 15, 2021
29bb002
Revert deploy condition to master
HAEKADI Sep 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
222 changes: 0 additions & 222 deletions .circleci/config.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /usr/bin/env bash

IGNORE_DIFF_ON="README.md CONTRIBUTING.md Makefile .gitignore .circleci/* .github/*"
IGNORE_DIFF_ON="README.md CONTRIBUTING.md Makefile .gitignore .github/*"

last_tagged_commit=`git describe --tags --abbrev=0 --first-parent` # --first-parent ensures we don't follow tags not published in master through an unlikely intermediary merge commit

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /usr/bin/env bash

if [[ $CIRCLE_BRANCH == master ]]
if [[ ${GITHUB_REF#refs/heads/} == master ]]
then
echo "No need for a version check on master."
exit 0
Expand Down
File renamed without changes.
22 changes: 22 additions & 0 deletions .github/split_tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import sys
from glob import glob


def split_tests(number_of_files, CI_NODE_TOTAL, CI_NODE_INDEX, test_files_list):
test_files_sublist = []

for file_index in range(number_of_files):
file_number = file_index % CI_NODE_TOTAL
if file_number == CI_NODE_INDEX:
test_files_sublist.append(test_files_list[file_index])

tests_to_run_string = " ".join(test_files_sublist)

return tests_to_run_string


if __name__ == "__main__":
CI_NODE_TOTAL, CI_NODE_INDEX = int(sys.argv[1]), int(sys.argv[2])
test_files_list = glob("tests/**/*.yaml", recursive=True) + glob("tests/**/*.yml", recursive=True)
number_of_files = len(test_files_list)
sys.stdout.write(split_tests(number_of_files, CI_NODE_TOTAL, CI_NODE_INDEX, test_files_list))
File renamed without changes.
Loading