mirror of
https://github.com/DMOJ/online-judge.git
synced 2024-11-25 16:32:37 +08:00
Update github action versions
This commit is contained in:
parent
f3ed41c96a
commit
49ce27a263
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@ -4,9 +4,9 @@ jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python 3.7
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.7'
|
||||
- name: Install flake8
|
||||
@ -18,13 +18,13 @@ jobs:
|
||||
unit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python 3.7
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.7'
|
||||
- name: Cache pip
|
||||
uses: actions/cache@v2
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: pip-${{ runner.os }}-${{ secrets.CACHE_VERSION }}-${{ hashFiles('requirements.txt') }}
|
||||
@ -40,15 +40,15 @@ jobs:
|
||||
run: coverage run --source=. manage.py test judge
|
||||
- name: Generate coverage report
|
||||
run: coverage xml
|
||||
- uses: codecov/codecov-action@v1
|
||||
- uses: codecov/codecov-action@v4
|
||||
styles:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Node 18
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Node 20
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 20
|
||||
- name: Install npm packages
|
||||
run: npm install -g sass postcss-cli postcss autoprefixer
|
||||
- name: Build style.css
|
||||
|
2
.github/workflows/caniuse.yml
vendored
2
.github/workflows/caniuse.yml
vendored
@ -7,7 +7,7 @@ jobs:
|
||||
if: github.repository == 'DMOJ/online-judge'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Download Can I use... data
|
||||
run: |
|
||||
curl -s https://raw.githubusercontent.com/Fyrd/caniuse/master/data.json | python3 -m json.tool > resources/caniuse.json
|
||||
|
4
.github/workflows/compilemessages.yml
vendored
4
.github/workflows/compilemessages.yml
vendored
@ -10,9 +10,9 @@ jobs:
|
||||
compilemessages:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python 3.7
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.7'
|
||||
- name: Checkout submodules
|
||||
|
4
.github/workflows/makemessages.yml
vendored
4
.github/workflows/makemessages.yml
vendored
@ -7,9 +7,9 @@ jobs:
|
||||
makemessages:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python 3.7
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.7'
|
||||
- name: Checkout submodules
|
||||
|
4
.github/workflows/updatemessages.yml
vendored
4
.github/workflows/updatemessages.yml
vendored
@ -7,11 +7,11 @@ jobs:
|
||||
if: github.repository == 'DMOJ/online-judge'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Set up Python 3.7
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.7'
|
||||
- name: Checkout submodules
|
||||
|
Loading…
Reference in New Issue
Block a user