Skip to content

Commit

Permalink
ci(actions): Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
asyrjasalo committed Jul 28, 2024
1 parent b97dbf9 commit 84a993e
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 54 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/atest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Acceptance tests

on:
push:
branches: [master,debug]
pull_request:
branches: [master]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9.19, 3.10.14, 3.11.9, 3.12.4]

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --user pdm
pdm install
- name: Start test environment
run: |
pdm testenv &
echo "Waiting for test server to become available..."
curl --retry 5 --retry-connrefused --retry-delay 3 http://localhost:8273
- name: Run acceptance tests
run: pdm atest
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Python package
name: Build packages

on:
push:
branches: [master]
branches: [master,debug]
pull_request:
branches: [master]

Expand All @@ -15,15 +15,19 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --user pdm
pdm install
- name: Recreate documentation
run: pdm docs

- name: Build distributions
run: pdm build
2 changes: 1 addition & 1 deletion .github/workflows/inactive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
issues: write
pull-requests: write
steps:
- uses: actions/stale@v5
- uses: actions/stale@v9
with:
days-before-issue-stale: 30
days-before-issue-close: 14
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/rf_tests.yml

This file was deleted.

12 changes: 6 additions & 6 deletions .github/workflows/unittests.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python Unit tests
name: Unit tests

on:
push:
branches: [master]
branches: [master,debug]
pull_request:
branches: [master]

Expand All @@ -18,13 +15,16 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --user pdm
pdm install
- name: Run unit tests
run: pdm test

0 comments on commit 84a993e

Please sign in to comment.