Skip to content

Commit 8abe2a0

Browse files
CI/CD
1 parent 7a1b68d commit 8abe2a0

File tree

2 files changed

+32
-16
lines changed

2 files changed

+32
-16
lines changed

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem
6+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#directory
7+
8+
version: 2
9+
updates:
10+
- package-ecosystem: "pip" # package manager
11+
directory: "/" # Files stored in repository root
12+
schedule:
13+
interval: "monthly"

.github/workflows/run_script.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ jobs:
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

Comments
 (0)