Skip to content

Commit

Permalink
Updated Github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe-david committed Feb 13, 2024
1 parent 755be37 commit 958d9fa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Move tag
uses: actions/github-script@v4
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
try {
await github.git.deleteRef({
await github.rest.git.deleteRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "tags/latest-release",
})
} catch (e) {
console.log("Tag does not exist." + e)
}
await github.git.createRef({
await github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/latest-release",
Expand All @@ -43,9 +43,9 @@ jobs:
os: [ ubuntu-latest ]

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

Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
os: [ ubuntu-20.04, windows-latest, macos-latest ] # On 2023/07/04, pytest completely stalls on ubuntu-latest, except with Python 3.10

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: mpi4py/setup-mpi@v1

- name: Install poetry
run: pipx install poetry==${{ vars.POETRY_VERSION }}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
Expand Down Expand Up @@ -56,18 +56,14 @@ jobs:
shell: bash

- name: Publish code coverage on Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
if: ${{ runner.os == 'Windows' && matrix.python-version == '3.9' }} # Using Windows for covering XFOIL calls
with:
# flags: unittests # optional
name: codecov-FAST-OAD # optional
fail_ci_if_error: false # optional (default = false)

- name: Publish code coverage on Code Climate
uses: paambaati/codeclimate-action@v3.2.0
if: ${{ runner.os == 'Linux' && matrix.python-version == '3.9' }} # This action runs only on Linux
env:
CC_TEST_REPORTER_ID: ${{ secrets.codeclimate }}
CODECOV_TOKEN: 32bddc38-24e3-4d92-8b87-f76bd02f3451

- name: Integration tests
run: poetry run pytest --no-cov tests/integration_tests
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/watchman_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
os: [ ubuntu-latest, windows-latest, macos-latest ]

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

Expand All @@ -44,9 +44,9 @@ jobs:
run: pip list --format=freeze | tee requirements.txt
shell: bash

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: pip package list
name: pip package list for ${{ matrix.os }}
path: requirements.txt

- name: Unit tests
Expand Down

0 comments on commit 958d9fa

Please sign in to comment.