Skip to content

Commit 68c0e84

Browse files
committed
First commit
0 parents  commit 68c0e84

30 files changed

+755
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
expr-lang/_version.py export-subst

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"

.github/workflows/black.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Black Formatting
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
black:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version-file: .python-version
16+
17+
- name: Install Dependencies
18+
run: make install
19+
20+
- name: Test Formatting
21+
run: make black_check

.github/workflows/dapperdata.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Configuration File Formatting
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
dapperdata:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version-file: .python-version
16+
17+
- name: Install Dependencies
18+
run: make install
19+
20+
- name: Test Formatting
21+
run: make dapperdata_check

.github/workflows/lockfiles.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Update Dependencies and Push to Github
2+
3+
on:
4+
# Allow API to be hit to trigger workflow.
5+
workflow_dispatch:
6+
7+
# Every Monday at 1PM UTC (7AM EST)
8+
schedule:
9+
- cron: "0 11 * * 1"
10+
11+
jobs:
12+
push-update:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version-file: .python-version
22+
23+
- name: "Update Lockfiles and Open PR"
24+
uses: tedivm/action-python-lockfile-update@v2
25+
with:
26+
pip_extras: "dev"
27+
# This key will bypass workflow limitations to ensure tests are run.
28+
# deploy_key: ${{ secrets.WRITEABLE_DEPLOY_KEY }}
29+
30+
env:
31+
# Needed to open pull request- automatically set for all actions.
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/mypy.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Mypy testing
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
mypy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version-file: .python-version
16+
17+
- name: Install Dependencies
18+
run: make install
19+
20+
- name: Test Typing
21+
run: make mypy_check

.github/workflows/pypi.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: PyPI
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
tags:
8+
- "v[0-9]+.[0-9]+.[0-9]+"
9+
pull_request:
10+
11+
env:
12+
PUBLISH_TO_PYPI: true
13+
14+
jobs:
15+
pypi:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
id-token: write
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
fetch-tags: true
24+
25+
- uses: actions/setup-python@v5
26+
with:
27+
python-version-file: .python-version
28+
29+
- name: Install Dependencies
30+
run: make install
31+
32+
- name: Build Wheel
33+
run: make build
34+
35+
# This will only run on Tags
36+
- name: Publish package
37+
if: ${{ env.PUBLISH_TO_PYPI == 'true' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')}}
38+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/pytest.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: PyTest
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
env:
8+
COLUMNS: 120
9+
10+
jobs:
11+
pytest:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version-file: .python-version
19+
20+
- name: Install Dependencies
21+
run: make install
22+
23+
- name: Run Tests
24+
run: make pytest

.github/workflows/ruff.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Ruff Linting
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
black:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version-file: .python-version
16+
17+
- name: Install Dependencies
18+
run: make install
19+
20+
- name: Test Formatting
21+
run: make ruff_check

.github/workflows/tomlsort.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: TOML Formatting
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
tomlsort:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version-file: .python-version
16+
17+
- name: Install Dependencies
18+
run: make install
19+
20+
- name: Test Typing
21+
run: make tomlsort_check

0 commit comments

Comments
 (0)