FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pre-commit/.github/workflows/languages.yaml at main · pre-commit/pre-commit · GitHub
pre-commit
pre-commit
Repository navigation
Code
Issues
17
(17)
Pull requests
8
(8)
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
pre-commit
/
.github
/
workflows
/
languages.yaml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
84 lines (79 loc) · 2.57 KB
Breadcrumbs
pre-commit
/
.github
/
workflows
/
languages.yaml
Copy path
File metadata and controls
84 lines (79 loc) · 2.57 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name
:
languages
on
:
push
:
branches
:
[main, test-me-*]
tags
:
'
*
'
pull_request
:
concurrency
:
group
:
${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress
:
true
jobs
:
vars
:
runs-on
:
ubuntu-latest
outputs
:
languages
:
${{ steps.vars.outputs.languages }}
steps
:
-
uses
:
actions/checkout@v3
with
:
fetch-depth
:
0
-
uses
:
actions/setup-python@v4
with
:
python-version
:
'
3.11
'
-
name
:
install deps
run
:
python -mpip install -e . -r requirements-dev.txt
-
name
:
vars
run
:
testing/languages ${{ github.event_name == 'push' && '--all' || '' }}
id
:
vars
language
:
needs
:
[vars]
runs-on
:
${{ matrix.os }}
if
:
needs.vars.outputs.languages != '[]'
strategy
:
fail-fast
:
false
matrix
:
include
:
${{ fromJSON(needs.vars.outputs.languages) }}
steps
:
-
uses
:
asottile/workflows/.github/actions/fast-checkout@v1.8.1
-
uses
:
actions/setup-python@v4
with
:
python-version
:
'
3.11
'
-
run
:
echo "$CONDA\Scripts" >> "$GITHUB_PATH"
shell
:
bash
if
:
matrix.os == 'windows-latest' && matrix.language == 'conda'
-
run
:
testing/get-coursier.sh
shell
:
bash
if
:
matrix.language == 'coursier'
-
run
:
testing/get-dart.sh
shell
:
bash
if
:
matrix.language == 'dart'
-
run
:
|
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
lua5.3 \
liblua5.3-dev \
luarocks
if: matrix.os == 'ubuntu-latest' && matrix.language == 'lua'
-
run
:
|
echo 'C:\Strawberry\perl\bin' >> "$GITHUB_PATH"
echo 'C:\Strawberry\perl\site\bin' >> "$GITHUB_PATH"
echo 'C:\Strawberry\c\bin' >> "$GITHUB_PATH"
shell: bash
if: matrix.os == 'windows-latest' && matrix.language == 'perl'
-
uses
:
haskell-actions/setup@v2
if
:
matrix.language == 'haskell'
-
uses
:
r-lib/actions/setup-r@v2
if
:
matrix.os == 'ubuntu-latest' && matrix.language == 'r'
-
name
:
install deps
run
:
python -mpip install -e . -r requirements-dev.txt
-
name
:
run tests
run
:
coverage run -m pytest tests/languages/${{ matrix.language }}_test.py
-
name
:
check coverage
run
:
coverage report --include pre_commit/languages/${{ matrix.language }}.py,tests/languages/${{ matrix.language }}_test.py
collector
:
needs
:
[language]
if
:
always()
runs-on
:
ubuntu-latest
steps
:
-
name
:
check for failures
if
:
contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run
:
echo job failed && exit 1
Back
|
FazBrowse Home
|
New Git URL