diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e4b1aec..d27f7fd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,22 +14,23 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-11] - python_version: [3.9] steps: - uses: actions/checkout@v2 with: submodules: 'recursive' + - run: pipx install poetry + - 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 python -m venv venv source venv/bin/activate || source venv/Scripts/activate make build diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 1dd8fc8..1409b74 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -15,17 +15,19 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python_version: [3.9] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: submodules: 'recursive' + - run: pipx install poetry + - 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 @@ -36,10 +38,9 @@ jobs: - name: Install dependencies shell: bash run: | - pip install poetry source venv/bin/activate || source venv/Scripts/activate make build - + - name: Set up ActivityWatch uses: ActivityWatch/setup-action@master with: