Skip to content

Commit 4604d61

Browse files
authored
CI: Speed improvements (#428)
2 parents ea31e1f + 1d42c81 commit 4604d61

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

.github/workflows/tests.yml

+21-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ jobs:
6868
export PATH=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin:$PATH
6969
ls $HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin
7070
tmux -V
71-
sudo apt install cowsay
7271
poetry run py.test --cov=./ --cov-append --cov-report=xml
7372
env:
7473
COV_CORE_SOURCE: .
@@ -78,6 +77,27 @@ jobs:
7877
with:
7978
token: ${{ secrets.CODECOV_TOKEN }}
8079

80+
release:
81+
runs-on: ubuntu-latest
82+
needs: build
83+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
84+
85+
strategy:
86+
matrix:
87+
python-version: ["3.10"]
88+
89+
steps:
90+
- uses: actions/checkout@v3
91+
92+
- name: Install poetry
93+
run: pipx install "poetry==1.1.15"
94+
95+
- name: Set up Python ${{ matrix.python-version }}
96+
uses: actions/setup-python@v4
97+
with:
98+
python-version: ${{ matrix.python-version }}
99+
cache: 'poetry'
100+
81101
- name: Build package
82102
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
83103
run: poetry build

.python-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.10.6 3.9.13 3.8.13 3.7.12
1+
3.10.6 3.9.13 3.8.13 3.7.13

.tool-versions

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
poetry 1.1.15
2-
python 3.10.6 3.9.13 3.8.13 3.7.12
2+
python 3.10.6 3.9.13 3.8.13 3.7.13

0 commit comments

Comments
 (0)