Skip to content

Commit

Permalink
ci: replaced python_version matrix var with `python-version-file: p…
Browse files Browse the repository at this point in the history
…yproject.toml`
  • Loading branch information
ErikBjare committed Dec 6, 2023
1 parent b4598ff commit 185a1b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Expand Up @@ -14,22 +14,22 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-11]
python_version: [3.9]

steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
python-version-file: pyproject.toml
cache: 'poetry'

- name: Install dependencies
shell: bash
run: |
pip install poetry==1.3.2
pipx install poetry==1.3.2
python -m venv venv
source venv/bin/activate || source venv/Scripts/activate
make build
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/examples.yml
Expand Up @@ -15,17 +15,17 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python_version: [3.9]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
python-version-file: pyproject.toml
cache: 'poetry'

- name: Create virtualenv
shell: bash
Expand All @@ -36,10 +36,10 @@ jobs:
- name: Install dependencies
shell: bash
run: |
pip install poetry
pipx install poetry
source venv/bin/activate || source venv/Scripts/activate
make build
- name: Set up ActivityWatch
uses: ActivityWatch/setup-action@master
with:
Expand Down

0 comments on commit 185a1b3

Please sign in to comment.