Skip to content

Commit 346bbfa

Browse files
committed
Run: prettier --single-quote '.github/**/*.{yml,yaml}' --write
1 parent 72d4b23 commit 346bbfa

File tree

3 files changed

+137
-138
lines changed

3 files changed

+137
-138
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: "CodeQL"
1+
name: 'CodeQL'
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88
schedule:
99
- cron: '16 5 * * 2'
1010

@@ -18,16 +18,16 @@ jobs:
1818
security-events: write
1919

2020
steps:
21-
- name: Checkout repository
22-
uses: actions/checkout@v3
21+
- name: Checkout repository
22+
uses: actions/checkout@v3
2323

24-
- name: Initialize CodeQL
25-
uses: github/codeql-action/init@v2
26-
with:
27-
languages: "python"
24+
- name: Initialize CodeQL
25+
uses: github/codeql-action/init@v2
26+
with:
27+
languages: 'python'
2828

29-
- name: Autobuild
30-
uses: github/codeql-action/autobuild@v2
29+
- name: Autobuild
30+
uses: github/codeql-action/autobuild@v2
3131

32-
- name: Perform CodeQL Analysis
33-
uses: github/codeql-action/analyze@v2
32+
- name: Perform CodeQL Analysis
33+
uses: github/codeql-action/analyze@v2

.github/workflows/docs.yml

Lines changed: 58 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -7,74 +7,73 @@ on:
77

88
jobs:
99
build:
10-
1110
runs-on: ubuntu-latest
1211
strategy:
1312
matrix:
14-
python-version: [ '3.11' ]
13+
python-version: ['3.11']
1514
steps:
16-
- uses: actions/checkout@v3
17-
- name: Filter changed file paths to outputs
18-
uses: dorny/paths-filter@v2.7.0
19-
id: changes
20-
with:
21-
filters: |
22-
root_docs:
23-
- CHANGES
24-
- README.*
25-
docs:
26-
- 'docs/**'
27-
- 'examples/**'
28-
python_files:
29-
- 'src/tmuxp/**'
30-
- pyproject.toml
31-
- poetry.lock
15+
- uses: actions/checkout@v3
16+
- name: Filter changed file paths to outputs
17+
uses: dorny/paths-filter@v2.7.0
18+
id: changes
19+
with:
20+
filters: |
21+
root_docs:
22+
- CHANGES
23+
- README.*
24+
docs:
25+
- 'docs/**'
26+
- 'examples/**'
27+
python_files:
28+
- 'src/tmuxp/**'
29+
- pyproject.toml
30+
- poetry.lock
3231
33-
- name: Should publish
34-
if: steps.changes.outputs.docs == 'true' || steps.changes.outputs.root_docs == 'true' || steps.changes.outputs.python_files == 'true'
35-
run: echo "PUBLISH=$(echo true)" >> $GITHUB_ENV
32+
- name: Should publish
33+
if: steps.changes.outputs.docs == 'true' || steps.changes.outputs.root_docs == 'true' || steps.changes.outputs.python_files == 'true'
34+
run: echo "PUBLISH=$(echo true)" >> $GITHUB_ENV
3635

37-
- name: Install poetry
38-
if: env.PUBLISH == 'true'
39-
run: pipx install "poetry==1.6.1"
36+
- name: Install poetry
37+
if: env.PUBLISH == 'true'
38+
run: pipx install "poetry==1.6.1"
4039

41-
- name: Set up Python ${{ matrix.python-version }}
42-
uses: actions/setup-python@v4
43-
if: env.PUBLISH == 'true'
44-
with:
45-
python-version: ${{ matrix.python-version }}
46-
cache: 'poetry'
40+
- name: Set up Python ${{ matrix.python-version }}
41+
uses: actions/setup-python@v4
42+
if: env.PUBLISH == 'true'
43+
with:
44+
python-version: ${{ matrix.python-version }}
45+
cache: 'poetry'
4746

48-
- name: Install dependencies [w/ docs]
49-
if: env.PUBLISH == 'true'
50-
run: poetry install --extras "docs lint"
47+
- name: Install dependencies [w/ docs]
48+
if: env.PUBLISH == 'true'
49+
run: poetry install --extras "docs lint"
5150

52-
- name: Print python versions
53-
if: env.PUBLISH == 'true'
54-
run: |
55-
python -V
56-
poetry run python -V
51+
- name: Print python versions
52+
if: env.PUBLISH == 'true'
53+
run: |
54+
python -V
55+
poetry run python -V
5756
58-
- name: Build documentation
59-
if: env.PUBLISH == 'true'
60-
run: |
61-
pushd docs; make SPHINXBUILD='poetry run sphinx-build' html; popd
57+
- name: Build documentation
58+
if: env.PUBLISH == 'true'
59+
run: |
60+
pushd docs; make SPHINXBUILD='poetry run sphinx-build' html; popd
6261
63-
- name: Push documentation to S3
64-
if: env.PUBLISH == 'true'
65-
uses: jakejarvis/s3-sync-action@master
66-
with:
67-
args: --acl public-read --follow-symlinks --delete
68-
env:
69-
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
70-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
71-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
72-
AWS_REGION: 'us-west-1' # optional: defaults to us-east-1
73-
SOURCE_DIR: 'docs/_build/html' # optional: defaults to entire repository
62+
- name: Push documentation to S3
63+
if: env.PUBLISH == 'true'
64+
uses: jakejarvis/s3-sync-action@master
65+
with:
66+
args: --acl public-read --follow-symlinks --delete
67+
env:
68+
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
69+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
70+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
71+
AWS_REGION: 'us-west-1' # optional: defaults to us-east-1
72+
SOURCE_DIR: 'docs/_build/html' # optional: defaults to entire repository
7473

75-
- name: Purge cache on Cloudflare
76-
if: env.PUBLISH == 'true'
77-
uses: jakejarvis/cloudflare-purge-action@v0.3.0
78-
env:
79-
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
80-
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
74+
- name: Purge cache on Cloudflare
75+
if: env.PUBLISH == 'true'
76+
uses: jakejarvis/cloudflare-purge-action@v0.3.0
77+
env:
78+
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
79+
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}

.github/workflows/tests.yml

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -10,78 +10,78 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: [ '3.11' ]
14-
tmux-version: [ '2.6', '2.7', '2.8', '3.0a', '3.1b', '3.2a', '3.3a', 'master' ]
13+
python-version: ['3.11']
14+
tmux-version: ['2.6', '2.7', '2.8', '3.0a', '3.1b', '3.2a', '3.3a', 'master']
1515
# balance ci coverage across supported python/tmux versions with CI speed
1616
include:
1717
- python-version: '3.8'
1818
tmux-version: '2.6'
1919
- python-version: '3.8'
2020
tmux-version: 'master'
2121
steps:
22-
- uses: actions/checkout@v3
23-
24-
- name: Install poetry
25-
run: pipx install "poetry==1.6.1"
26-
27-
- name: Set up Python ${{ matrix.python-version }}
28-
uses: actions/setup-python@v4
29-
with:
30-
python-version: ${{ matrix.python-version }}
31-
cache: 'poetry'
32-
33-
- name: Setup tmux build cache for tmux ${{ matrix.tmux-version }}
34-
id: tmux-build-cache
35-
uses: actions/cache@v3
36-
with:
37-
path: ~/tmux-builds/tmux-${{ matrix.tmux-version }}
38-
key: tmux-${{ matrix.tmux-version }}
39-
40-
- name: Build tmux ${{ matrix.tmux-version }}
41-
if: steps.tmux-build-cache.outputs.cache-hit != 'true'
42-
run: |
43-
sudo apt install libevent-dev libncurses5-dev libtinfo-dev libutempter-dev bison
44-
mkdir ~/tmux-builds
45-
mkdir ~/tmux-src
46-
git clone https://github.com/tmux/tmux.git ~/tmux-src/tmux-${{ matrix.tmux-version }}
47-
cd ~/tmux-src/tmux-${{ matrix.tmux-version }}
48-
git checkout ${{ matrix.tmux-version }}
49-
sh autogen.sh
50-
./configure --prefix=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }} && make && make install
51-
export PATH=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin:$PATH
52-
cd ~
53-
tmux -V
54-
55-
- name: Install python dependencies
56-
run: |
57-
poetry install -E "test coverage lint"
58-
59-
- name: Lint with black . --check
60-
run: poetry run black . --check
61-
62-
- name: Lint with ruff .
63-
run: poetry run ruff .
64-
65-
- name: Lint with mypy
66-
run: poetry run mypy .
67-
68-
- name: Print python versions
69-
run: |
70-
python -V
71-
poetry run python -V
72-
73-
- name: Test with pytest
74-
continue-on-error: ${{ matrix.tmux-version == 'master' }}
75-
run: |
76-
sudo apt install libevent-2.1-7
77-
export PATH=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin:$PATH
78-
ls $HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin
79-
tmux -V
80-
poetry run py.test --cov=./ --cov-report=xml
81-
82-
- uses: codecov/codecov-action@v3
83-
with:
84-
token: ${{ secrets.CODECOV_TOKEN }}
22+
- uses: actions/checkout@v3
23+
24+
- name: Install poetry
25+
run: pipx install "poetry==1.6.1"
26+
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v4
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
cache: 'poetry'
32+
33+
- name: Setup tmux build cache for tmux ${{ matrix.tmux-version }}
34+
id: tmux-build-cache
35+
uses: actions/cache@v3
36+
with:
37+
path: ~/tmux-builds/tmux-${{ matrix.tmux-version }}
38+
key: tmux-${{ matrix.tmux-version }}
39+
40+
- name: Build tmux ${{ matrix.tmux-version }}
41+
if: steps.tmux-build-cache.outputs.cache-hit != 'true'
42+
run: |
43+
sudo apt install libevent-dev libncurses5-dev libtinfo-dev libutempter-dev bison
44+
mkdir ~/tmux-builds
45+
mkdir ~/tmux-src
46+
git clone https://github.com/tmux/tmux.git ~/tmux-src/tmux-${{ matrix.tmux-version }}
47+
cd ~/tmux-src/tmux-${{ matrix.tmux-version }}
48+
git checkout ${{ matrix.tmux-version }}
49+
sh autogen.sh
50+
./configure --prefix=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }} && make && make install
51+
export PATH=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin:$PATH
52+
cd ~
53+
tmux -V
54+
55+
- name: Install python dependencies
56+
run: |
57+
poetry install -E "test coverage lint"
58+
59+
- name: Lint with black . --check
60+
run: poetry run black . --check
61+
62+
- name: Lint with ruff .
63+
run: poetry run ruff .
64+
65+
- name: Lint with mypy
66+
run: poetry run mypy .
67+
68+
- name: Print python versions
69+
run: |
70+
python -V
71+
poetry run python -V
72+
73+
- name: Test with pytest
74+
continue-on-error: ${{ matrix.tmux-version == 'master' }}
75+
run: |
76+
sudo apt install libevent-2.1-7
77+
export PATH=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin:$PATH
78+
ls $HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin
79+
tmux -V
80+
poetry run py.test --cov=./ --cov-report=xml
81+
82+
- uses: codecov/codecov-action@v3
83+
with:
84+
token: ${{ secrets.CODECOV_TOKEN }}
8585

8686
release:
8787
runs-on: ubuntu-latest
@@ -90,7 +90,7 @@ jobs:
9090

9191
strategy:
9292
matrix:
93-
python-version: ["3.11"]
93+
python-version: ['3.11']
9494

9595
steps:
9696
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)