88 strategy :
99 fail-fast : false
1010 matrix :
11- python-version : ["3.10.5"]
12- poetry-version : ["1.1.13"]
11+ # hard-coded versions
12+ # python-version: ["3.10.5"]
13+ # poetry-version: ["1.1.13"]
1314 os : [ubuntu-latest]
1415 arch : ['x64']
1516
@@ -18,30 +19,32 @@ jobs:
1819 steps :
1920 - name : checkout repo content
2021 uses : actions/checkout@v3
22+ # dynamic versions
23+ - name : Read .tool-versions
24+ uses : marocchino/tool-versions-action@v1
25+ id : versions
2126 - name : setup python
2227 uses : actions/setup-python@v4
2328 with :
24- python-version : ${{ matrix. python-version }}
29+ python-version : ${{ steps.versions.outputs. python }}
2530 architecture : ${{ matrix.arch }}
26- # - name: Install dependencies
27- # run: |
28- # python -m pip install --upgrade pip
29- # if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3031 - name : run poetry image
3132 uses : abatilo/actions-poetry@v2.0.0
3233 with :
33- poetry-version : ${{ matrix. poetry-version }}
34- - name : install gh cli
35- shell : bash
36- run : |
37- curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
38- sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
39- echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
40- sudo apt update
41- sudo apt install --no-install-recommends -y gh
34+ poetry-version : ${{ steps.versions.outputs. poetry }}
35+ # - name: install gh cli
36+ # shell: bash
37+ # run: |
38+ # curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
39+ # sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg
40+ # echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
41+ # sudo apt update
42+ # sudo apt install --no-install-recommends -y gh
4243 - name : run script
4344 shell : bash
4445 env :
46+ # github token needed for gh cli
47+ # GH_TOKEN: ${{ secrets.GH_TOKEN }}
4548 username : ${{ secrets.USERNAME }}
4649 run : |
4750 python -m pip install --upgrade pip
0 commit comments